/* Shared styles for the legal / DPDP pages (/privacy, /terms, /refund,
   /grievance, /contact, /dpdp, /parent-consent). Same editorial palette and
   type as /about and the landing page (cream + near-black + deep red,
   Fraunces headings, Inter body). */
:root {
  --ed-bg: #fafaf7; --ed-surface: #fff; --ed-surface-soft: #f5f4ef;
  --ed-text: #1a1a1a; --ed-text-muted: #525252; --ed-text-faint: #8a8a8a;
  --ed-accent: #991b1b; --ed-accent-soft: #fef2f2; --ed-border: #d4d4d0; --ed-border-soft: #ececea;
  --ok: #166534; --ok-soft: #f0fdf4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0; background: var(--ed-bg); color: #1f2937; line-height: 1.7; font-size: 16px;
}
.lg-wrap { max-width: 780px; margin: 0 auto; padding: 28px 20px 64px; }
.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 18px; }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ed-text); text-decoration: none; font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.05rem; }
.lg-brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ed-accent); display: inline-flex; align-items: center; justify-content: center; }
.lg-brand-mark svg path { stroke: #fafaf7; stroke-width: 2.6; fill: none; stroke-linecap: round; }
.lg-top nav { display: flex; gap: 14px; flex-wrap: wrap; }
.lg-top nav a { color: var(--ed-text-muted); text-decoration: none; }
.lg-top nav a:hover, .lg-top nav a[aria-current="page"] { color: var(--ed-accent); }
h1, h2, h3 { font-family: 'Fraunces', 'Source Serif Pro', Georgia, serif; color: var(--ed-text); font-weight: 600; letter-spacing: -0.3px; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: .3rem 0 .5rem; }
h2 { margin: 2.2em 0 .6em; font-size: 1.4rem; scroll-margin-top: 16px; }
h3 { margin: 1.6em 0 .4em; font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: #1d4ed8; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .3em 0; }
.lg-eyebrow { display: inline-block; color: var(--ed-accent); border-bottom: 2px solid var(--ed-accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 4px; }
.lg-meta { color: var(--ed-text-muted); font-size: .9rem; margin-bottom: 1.4rem; }
.lg-lede { font-family: 'Source Serif Pro', Georgia, serif; font-size: 1.12rem; color: var(--ed-text-muted); }
.lg-callout { background: var(--ed-surface); border: 1px solid var(--ed-border); border-left: 4px solid var(--ed-accent); border-radius: 6px; padding: 16px 18px; margin: 1.4em 0; }
.lg-callout.ok { border-left-color: var(--ok); }
.lg-callout p:last-child, .lg-callout ul:last-child { margin-bottom: 0; }
.lg-toc { background: var(--ed-surface-soft); border: 1px solid var(--ed-border-soft); border-radius: 6px; padding: 12px 18px; font-size: .92rem; }
.lg-toc ol { margin: .4em 0 0; }
.lg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 1.4em; border: 1px solid var(--ed-border); border-radius: 6px; background: var(--ed-surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--ed-border-soft); }
th { background: var(--ed-surface-soft); font-weight: 600; color: var(--ed-text); }
tr:last-child td { border-bottom: none; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.2em 0; }
.lg-card { background: var(--ed-surface); border: 1px solid var(--ed-border); border-radius: 6px; padding: 16px; }
.lg-card h3 { margin-top: 0; font-size: 1.02rem; }
.lg-card p { margin: 0; font-size: .93rem; color: var(--ed-text-muted); }
.lg-card .fa-solid, .lg-card i { color: var(--ed-accent); }
.lg-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ed-accent); color: #fff; border: 0; border-radius: 4px; padding: 11px 20px; font: 600 .95rem/1.2 Inter, sans-serif; cursor: pointer; text-decoration: none; }
.lg-btn:hover { background: #7f1717; }
.lg-btn[disabled] { opacity: .55; cursor: not-allowed; }
.lg-btn.secondary { background: transparent; color: var(--ed-text); border: 1.5px solid var(--ed-text); }
.lg-btn.secondary:hover { background: var(--ed-text); color: var(--ed-bg); }
form.lg-form { background: var(--ed-surface); border: 1px solid var(--ed-border); border-radius: 6px; padding: 20px; margin: 1.2em 0; }
.lg-form label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 14px; color: var(--ed-text); }
.lg-form input[type=text], .lg-form input[type=email], .lg-form select, .lg-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--ed-border); border-radius: 4px;
  font: 400 1rem/1.4 Inter, sans-serif; background: #fff; color: var(--ed-text);
}
.lg-form textarea { min-height: 130px; resize: vertical; }
.lg-form input:focus, .lg-form select:focus, .lg-form textarea:focus { outline: 2px solid var(--ed-accent); outline-offset: 1px; border-color: var(--ed-accent); }
.lg-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; padding: 10px 12px; border: 1px solid var(--ed-border-soft); border-radius: 4px; background: var(--ed-surface-soft); }
.lg-check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ed-accent); }
.lg-msg { margin-top: 12px; padding: 12px 14px; border-radius: 4px; font-size: .95rem; display: none; }
.lg-msg.ok { display: block; background: var(--ok-soft); color: var(--ok); border: 1px solid #bbf7d0; }
.lg-msg.err { display: block; background: var(--ed-accent-soft); color: var(--ed-accent); border: 1px solid #fecaca; }
.lg-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--ed-accent); background: var(--ed-accent-soft); border: 1px solid #fecaca; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; }
.lg-foot { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--ed-border); color: var(--ed-text-muted); font-size: .85rem; }
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .lg-wrap { padding: 18px 16px 48px; }
  form.lg-form { padding: 16px; }
}
