/*
  legal.css — shared look for schooljot.com/privacy, /terms, /support and
  /delete-account. Same palette and type as schooljot.com/app, widened for
  reading long text. These pages are linked from the iOS and Android apps
  (sign-in screen + hub footer), the App Store / Google Play listings, and
  the Play "delete account" requirement — keep them plain, fast and readable.
*/
:root {
  --green: #008F80; --green-deep: #17365D; --green-mid: #245384;
  --mint-50: #F5F8FC; --mint-100: #E8F2F5; --mint-border: #CFE2E8;
  --bg: #F5F8FC; --ink: #0F2745; --ink-2: #4A5F7A; --text-muted: #7A8CA3;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
main { max-width: 720px; margin: 0 auto; padding: 40px 20px 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; display: block; }
h1 { font-size: 2rem; line-height: 1.2; font-weight: 800; color: var(--green-deep); margin: 32px 0 6px; letter-spacing: -0.01em; }
.effective { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 24px; }
.lead { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 24px; }
h2 { font-size: 1.25rem; line-height: 1.3; color: var(--green-deep); margin: 36px 0 8px; scroll-margin-top: 16px; }
h3 { font-size: 1.02rem; color: var(--ink); margin: 20px 0 4px; }
p, li { font-size: 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin: 4px 0; }
a { color: var(--green-mid); }
a:hover { color: var(--green-deep); }
.toc { background: var(--mint-50); border: 1px solid var(--mint-border); border-radius: var(--radius); padding: 14px 20px; margin: 8px 0 8px; }
.toc ol { margin: 0; }
.note { background: var(--mint-100); border-radius: 12px; padding: 12px 16px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--mint-border); }
th { color: var(--green-deep); font-weight: 600; }
.steps { counter-reset: step; list-style: none; padding: 16px 20px; background: var(--mint-50); border-radius: var(--radius); }
/* The number is positioned, not a flex item: a flex row would split the text
   around every <strong> into separate columns. */
.steps li { counter-increment: step; position: relative; padding-left: 28px; }
.steps li::before { content: counter(step); position: absolute; left: 0; color: var(--green-mid); font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: var(--radius); background: var(--green-deep); color: #fff; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--green-mid); color: #fff; }
footer { border-top: 1px solid var(--mint-border); margin-top: 44px; padding-top: 18px; text-align: center; font-size: 0.88rem; color: var(--text-muted); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
footer a { color: var(--ink-2); }
footer a[aria-current="page"] { color: var(--green-deep); font-weight: 600; text-decoration: none; }
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--mint-border); padding: 8px 0; }
  td:first-child { font-weight: 600; color: var(--green-deep); }
}
