/*
 * lazo legal pages: the app's 1.7 palette ("Canlı Mahalle": night purple, cream, coral).
 * Shares the marketing site's self-hosted fonts at /fonts; falls back to system fonts
 * when served on its own. No scripts, nothing from other hosts.
 */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/schibsted-grotesk-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/schibsted-grotesk-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/fonts/schibsted-grotesk-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #241338;
  --night-deep: #1a0e28;
  --cream: #fff4ec;
  --ink: #2a0f12;
  --ink-2: #6e4d5c;
  --coral: #ff7a59;
  --coral-deep: #a02a10;
  --lamp: #ffc46b;
  --top-bg: #241338;
  --top-fg: #fff4ec;
  --line: rgba(42, 15, 18, 0.14);
  --mark-bg: #ffe3d8;
  --note-bg: #fbe7dc;
  --font-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
/* Dark: the reading surface turns night purple, cream text; the chrome stays the same. */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #241338;
    --ink: #fff4ec;
    --ink-2: #e2c9d6;
    --coral-deep: #ff7a59;
    --line: rgba(255, 244, 236, 0.18);
    --mark-bg: #4a1e4f;
    --note-bg: #3a2552;
    color-scheme: dark;
  }
  .top { border-bottom: 1px solid var(--line); }
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--font-sans);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Shared top bar: night purple, like the marketing site. */
.top {
  background: var(--top-bg);
  color: var(--top-fg);
  padding: 12px 20px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
}
.top > * {
  flex: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--top-fg);
  text-decoration: none;
  padding: 6px 0;
}
.loop { color: var(--coral); }
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 244, 236, 0.28);
  border-radius: 999px;
  color: var(--top-fg);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.lang:hover { border-color: var(--top-fg); }
.top a:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 999px; }

nav, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 60rem) {
  .top { padding-left: calc((100% - 44rem) / 2 + 20px); padding-right: calc((100% - 44rem) / 2 + 20px); }
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

a { color: var(--coral-deep); text-underline-offset: 3px; }
nav a { font-weight: 700; text-decoration: none; padding: 6px 0; color: var(--ink-2); }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--coral); }
a:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 2px; border-radius: 2px; }

main { padding-top: 8px; padding-bottom: 48px; overflow-wrap: anywhere; }
h1 { font-size: 2.1rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; margin: 28px 0 12px; text-wrap: balance; }
h2 { font-size: 1.3rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 4px; }
p, li { color: var(--ink); }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 4px; }

.draft {
  background: var(--note-bg);
  border-left: 4px solid var(--coral);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
}
mark.placeholder {
  background: var(--mark-bg);
  color: var(--ink);
  font: 600 0.85em ui-monospace, "SFMono-Regular", Consolas, monospace;
  padding: 1px 5px;
  border-radius: 4px;
}

footer {
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}

/* The language-choice index page (not published with the marketing site). */
main section[lang] { margin-top: 24px; }
main section ul { padding-left: 0; list-style: none; }
main section li + li { margin-top: 8px; }
