/* The privacy policy (/privacy) and terms of service (/terms): long reads on the waitlist page's
   tokens and type (styles.css), laid out as documents. No dial and no opening: just the words,
   which select, unlike the home page. */

:root {
  --text-emphasis: rgb(255 255 255 / 0.8);
  --text-secondary: rgb(255 255 255 / 0.55);
  --border-subtle: rgb(255 255 255 / 0.06);
}

.doc-page {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.doc-page h2,
.doc-page h3,
.doc-page ul { margin: 0; font-weight: inherit; }

.doc-page a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .doc-page a:hover { text-decoration-color: #fff; }
}

/* The top bar: the logo, home. */

.doc-top {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 0;
}

.doc-top .wordmark {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
}

/* The document. */

.doc {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Label/Caps */
.label {
  color: var(--text-tertiary);
  font: 600 12px/1.2 var(--sans);
  letter-spacing: 0.48px;
  text-transform: uppercase;
}

.doc-head .title { text-wrap: balance; }

/* Body/Regular, in text/secondary: the policy's own words, readable at length. */
.prose {
  color: var(--text-secondary);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: -0.32px;
  text-wrap: pretty;
}

.prose strong { color: var(--text-emphasis); font-weight: 600; }

/* In short: the app's own summary (Settings › Privacy policy), as cards. */

.summary {
  display: grid;
  gap: 12px;
}

.point {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: var(--bg-surface);
}

/* Body/Medium */
.point h3 {
  color: var(--text-primary);
  font: 600 16px/1.4 var(--sans);
  letter-spacing: -0.32px;
}

/* Callout/Regular */
.point p {
  color: var(--text-tertiary);
  font: 400 14px/1.4 var(--sans);
  text-wrap: pretty;
}

/* Contents */

.contents {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-surface);
}

.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 24px;
}

.contents li { break-inside: avoid; padding: 6px 0; }

.contents a {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font: 400 15px/1.4 var(--sans);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.contents a span { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  .contents a:hover { color: var(--text-primary); }
}

/* Sections */

.doc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: 24px;
}

.doc-section > .label { font-variant-numeric: tabular-nums; }

/* Headline/Bold */
.doc-section h2 {
  color: var(--text-primary);
  font: 700 20px/1.2 var(--display);
  letter-spacing: -0.4px;
  text-wrap: balance;
}

/* Body/Medium, for a group within a section. */
.doc-section h3 {
  margin-top: 8px;
  color: var(--text-emphasis);
  font: 600 16px/1.4 var(--sans);
  letter-spacing: -0.32px;
}

.doc-section ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-section li {
  position: relative;
  padding-left: 20px;
}

.doc-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.35);
}

/* The foot */

.doc-foot {
  width: min(720px, calc(100% - 48px));
  margin: 96px auto 0;
  padding: 40px 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
}

.doc-foot a { color: var(--text-tertiary); }

/* The phone (styles.css's 640px): Title/2, a single column of contents, closer spacing. */
@media (max-width: 640px) {
  .doc-top { padding-top: 24px; }

  .doc { padding-top: 64px; gap: 48px; }

  .doc-head .title {
    font-size: 32px;
    letter-spacing: -0.96px;
  }

  .contents { padding: 20px; }
  .contents ol { columns: 1; }

  .prose { font-size: 15px; letter-spacing: -0.3px; }

  .doc-section { padding-top: 32px; }

  .doc-foot {
    margin-top: 64px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .doc-foot .body { font-size: 13px; letter-spacing: 0; }
}
