/* The www legal pages (/privacy, /terms, /terms/facility, /terms/family).
   Same family as the waitlist page: Inter, warm cream, Olli orange. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse at top right, rgba(249, 115, 22, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #fffbf7 0%, #fffdfb 40%, #fefefe 100%);
  min-height: 100vh;
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.65;
  padding: 2rem 1rem 3rem;
}

a {
  color: #c2410c;
  text-underline-offset: 2px;
}

a:hover {
  color: #9a3412;
}

.site-header {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.site-header img {
  height: 48px;
  width: auto;
  display: block;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.meta {
  color: #666;
  font-size: 0.9rem;
}

.toc {
  margin: 2rem 0 0.5rem;
  padding: 1.25rem 1.5rem;
  background: #fffaf5;
  border: 1px solid #fde7d4;
  border-radius: 12px;
}

.toc ol {
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9rem;
}

.toc li {
  break-inside: avoid;
  padding: 0.15rem 0;
}

.toc a {
  display: flex;
  color: #1a1a1a;
  text-decoration: none;
}

.toc a:hover {
  color: #c2410c;
  text-decoration: underline;
}

.toc .num {
  color: #999;
  flex: none;
  width: 2rem;
}

article {
  margin-top: 1.5rem;
}

article p {
  margin: 0 0 1rem;
}

article h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  scroll-margin-top: 1.5rem;
}

article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
}

article h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

article h2 .num {
  color: #999;
  margin-right: 0.35rem;
}

.item {
  scroll-margin-top: 1.5rem;
}

.item .num {
  color: #888;
  font-variant-numeric: tabular-nums;
  margin-right: 0.3rem;
}

.item .head {
  font-weight: 600;
}

.item.lvl-2 {
  margin-left: 1.75rem;
}

.item.lvl-3 {
  margin-left: 3.5rem;
}

.item.lvl-3 .head {
  font-style: italic;
}

.item.lvl-4 {
  margin-left: 5.25rem;
}

.item.bullet .num {
  display: none;
}

.item.bullet {
  position: relative;
  padding-left: 1.25rem;
}

.item.bullet::before {
  content: '•';
  position: absolute;
  left: 0.25rem;
  color: #888;
}

.item.bullet.lvl-1 {
  margin-left: 1.75rem;
}

:target {
  background: #fff4e8;
  border-radius: 6px;
  box-shadow: 0 0 0 6px #fff4e8;
}

.caps {
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #eee;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #fffaf5;
  font-weight: 600;
}

td p,
th p {
  margin: 0 0 0.4rem;
}

td p:last-child,
th p:last-child {
  margin-bottom: 0;
}

.site-footer {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: #666;
  text-decoration: none;
}

.site-footer a:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* The /terms chooser */
.choices {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.choice {
  display: block;
  padding: 1.1rem 1.35rem;
  border: 1px solid #eee;
  border-radius: 12px;
  color: #1a1a1a;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.choice:hover {
  color: #1a1a1a;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.choice strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.choice span {
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  body {
    padding: 1.25rem 0.75rem 2rem;
    font-size: 0.95rem;
  }

  .site-header {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
  }

  .site-header img {
    height: 40px;
  }

  .doc {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .toc {
    padding: 1rem 1.1rem;
  }

  .toc ol {
    columns: 1;
  }

  .item.lvl-2 {
    margin-left: 0.75rem;
  }

  .item.lvl-3 {
    margin-left: 1.5rem;
  }

  .item.lvl-4 {
    margin-left: 2.25rem;
  }
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .site-header,
  .toc,
  .site-footer nav {
    display: none;
  }

  .doc {
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: none;
  }

  a {
    color: inherit;
  }
}
