/* Shared styles for SK Education legal pages (Terms of Use, Privacy Policy). */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f1b16;
  --muted: #6b6257;
  --rule: #e5ded2;
  --accent: #8a5a2b;
  --note-bg: #f3ede3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17150f;
    --surface: #201d17;
    --text: #ece7de;
    --muted: #a49a8b;
    --rule: #35302a;
    --accent: #d8a76b;
    --note-bg: #262119;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

header.doc-head {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 .6rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.dates {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

h2 {
  margin: 2.75rem 0 .75rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  scroll-margin-top: 1rem;
}

h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

p, li { margin: 0 0 .9rem; }

ul, ol { padding-left: 1.35rem; }

li { margin-bottom: .5rem; }

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

strong { font-weight: 650; }

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 1.75rem;
}

.toc {
  margin: 2rem 0 0;
  padding: 1.1rem 1.35rem .5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.toc h2 {
  margin: 0 0 .6rem;
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: .95rem;
}

.toc li { margin-bottom: .3rem; }

.note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--note-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: .96rem;
}

.note p:last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .93rem;
}

th, td {
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 650;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: none; }

.contact-block {
  margin: 1rem 0 0;
  line-height: 1.75;
}

footer.doc-foot {
  max-width: 44rem;
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--muted);
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; padding: 0; }
  .toc { break-inside: avoid; }
  h2 { break-after: avoid; }
}
