/* Shared styles for the front page and the text pages (tuki, yksityisyyskäytäntö) */

/* Colors from the app's dark theme, see colors_constants.dart */
:root {
  --white-rgb: 254, 252, 253;
  --text: rgb(var(--white-rgb));
  --text-muted: rgba(var(--white-rgb), 0.65);
  --text-faint: rgba(var(--white-rgb), 0.45);

  --bg: rgb(11, 12, 13);
  --bg-end: rgb(16, 17, 18);
  --surface: rgb(24, 25, 27);
  --surface-raised: rgb(33, 34, 36);
  --border: rgba(var(--white-rgb), 0.08);
  --border-strong: rgba(var(--white-rgb), 0.14);

  --yellow: rgb(255, 218, 30);
  --yellow-rgb: 255, 218, 30;
  --teal: rgb(96, 204, 194);
  --teal-rgb: 96, 204, 194;

  --radius-card: 20px;
  --radius-control: 14px;
  --shadow: 0px 8px 24px rgba(0, 0, 0, 0.35);
  --page-width: 1100px;
}

html {
  background-color: var(--bg-end);
}

body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%);
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: var(--text);
}

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0px 20px;
  /* The glows behind the front page phones reach past the page edges */
  overflow-x: clip;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(var(--yellow-rgb), 0.4);
  background-color: rgba(var(--yellow-rgb), 0.14);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 600;
}

.accent {
  color: var(--yellow);
}

/* Top bar */

#topbar {
  display: flex;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* Text pages */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 40px;
}

.doc h1 {
  margin-bottom: 24px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc-card {
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: rgba(var(--white-rgb), 0.85);
  line-height: 1.6;
}

.doc-card a {
  color: var(--yellow);
}

/* Footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 14px;
  text-align: center;
}

.koodimetsa-img {
  display: block;
  height: 26px;
  margin: 4px 0px;
}

footer a {
  color: var(--text-muted);
}
