/* Ramali legal pages - light theme (tokens from the app design system) */
:root {
  --bg: #fff9f0;
  --surface: #ffffff;
  --ink: #17385a;
  --ink-2: #4d6178;
  --teal: #0cb7a7;
  --link: #00756b;
  --link-hover: #005a52;
  --line: #e9e5df;
  --teal-soft: #ddf6f2;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(23, 56, 90, 0.07);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 700;
}
a:hover { color: var(--link-hover); }
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.nav__brand { text-decoration: none; line-height: 1; }
.wordmark { font-weight: 900; font-size: 1.75rem; letter-spacing: 0.04em; }
.lang-switch {
  text-decoration: none;
  color: var(--ink);
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9375rem;
  font-weight: 800;
  min-height: 36px;
}
.lang-switch:hover { background: var(--teal); color: #00332f; }

/* Content */
.prose { flex: 1; padding-top: 36px; padding-bottom: 48px; }
.prose > * { margin-top: 0; }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 12px;
  background: var(--teal-soft);
  color: #00574f;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--ink); font-weight: 900; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin: 0 0 8px; }
h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.6rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--line);
}
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--teal); font-weight: 800; }
strong { font-weight: 800; }

.meta-line { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.lead { font-size: 1.2rem; font-weight: 700; }

.callout, .promo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin: 1.5rem 0;
}
.callout p:last-child, .promo p:last-child { margin-bottom: 0; }
.promo { border-left-color: #ff9f35; margin-top: 2.5rem; }
.promo__brand { font-weight: 900; color: var(--ink-2); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 32px; text-align: center; }
.footer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer p { margin: 0; }
.footer__brand .wordmark { font-size: 1.4rem; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer__nav li { margin: 0; }
.footer__copy { color: var(--ink-2); font-size: 0.875rem; }

@media (min-width: 640px) {
  body { font-size: 1.125rem; }
  .prose { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
