/* ==========================================================================
   NOONO STUDIO — legal document pages (/privacy/ · /terms/)
   Loads on top of styles.css, which supplies the @font-face, the colour
   tokens, the reset and the two link styles. Only page-specific rules here.
   ========================================================================== */

:root {
  --ink:        rgba(255, 255, 255, 0.82);   /* body copy on brown */
  --ink-strong: #FFFFFF;
  --rule:       rgba(195, 170, 118, 0.28);
  --rule-soft:  rgba(195, 170, 118, 0.16);

  --doc-w: 1024px;
  --doc-gutter: clamp(24px, 5vw, 60px);
}

body.doc-page {
  overflow-x: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 20px;
}

.doc {
  max-width: var(--doc-w);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px) var(--doc-gutter) 0;
}

/* ── Masthead ───────────────────────────────────────────────────────── */
.doc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.doc__logo { display: inline-block; }
.doc__logo img { width: 76px; height: 28px; }

.doc__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 12px;
  line-height: 14px;
}

.doc__title {
  margin: clamp(40px, 7vw, 76px) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(36px, 6.2vw, 60px);
  line-height: 1;
  color: var(--gold);
}

.doc__intro {
  margin-top: 14px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(195, 170, 118, 0.85);
}

/* Effective date — kept visible near the top, where legal and carrier
   (A2P/SMS) reviewers look for it. */
.doc__date {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-strong);
}

.doc__rule {
  margin: clamp(24px, 4vw, 44px) 0 clamp(28px, 4vw, 48px);
  border: 0;
  border-top: 1px solid var(--rule);
}

/* ── Two-column editorial flow ──────────────────────────────────────── */
.doc__body {
  column-count: 2;
  column-gap: clamp(32px, 5vw, 64px);
  column-fill: balance;
}

.section {
  break-inside: avoid;
  page-break-inside: avoid;   /* legacy */
  margin: 0 0 clamp(30px, 4vw, 44px);
}

.section__num {
  display: block;
  margin-bottom: 10px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.section__title {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: var(--ink-strong);
}

.section p { margin: 0 0 12px; }
.section p:last-child { margin-bottom: 0; }

.section strong,
.section b { color: var(--gold); font-weight: 500; }

/* ── Hairline cell grids ────────────────────────────────────────────── */
.cells {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}

.cells > * {
  margin: 0;
  padding: 10px 14px 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12px;
  line-height: 17px;
}

.cells > *:nth-child(odd)  { padding-right: 16px; border-right: 1px solid var(--rule-soft); }
.cells > *:nth-child(even) { padding-left: 16px; }

.cells dt { display: inline; color: var(--gold); font-weight: 500; }
.cells dd { display: inline; margin: 0; }

.cells--list { list-style: none; padding: 0; }

/* ── Bordered cards ─────────────────────────────────────────────────── */
.card {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-top: 14px;
  padding: 14px 16px 15px;
  border: 1px solid var(--rule-soft);
}

.card__title {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-strong);
}

.card p { margin: 0 0 10px; font-size: 12px; line-height: 17px; }
.card p:last-child { margin-bottom: 0; }

.card__basis { font-size: 11px; line-height: 16px; }

/* ── Contact box ────────────────────────────────────────────────────── */
.contact-box {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: rgba(195, 170, 118, 0.07);
  font-size: 13px;
  line-height: 18px;
}
.contact-box strong { color: var(--gold); }

/* Keyword call-outs (STOP / HELP) */
.kw {
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.doc__foot {
  margin-top: clamp(28px, 4vw, 48px);
  padding: 18px var(--doc-gutter);
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.02em;
  color: rgba(195, 170, 118, 0.75);
}

/* ── Phone ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  body.doc-page { font-size: 14px; line-height: 21px; }

  .doc__body { column-count: 1; }

  .doc__logo img { width: 62px; height: auto; }

  .cells { grid-template-columns: minmax(0, 1fr); }
  .cells > *:nth-child(odd) { padding-right: 0; border-right: 0; }
  .cells > *:nth-child(even) { padding-left: 0; }

  .cells > *  { font-size: 13px; line-height: 19px; }
  .card p     { font-size: 13px; line-height: 19px; }
  .card__basis, .doc__intro, .doc__date { font-size: 12px; line-height: 17px; }
}

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  body.doc-page { background: #fff; color: #000; }
  .doc__title, .section__num, .section strong, .cells dt, .kw { color: #000; }
  .doc__intro, .doc__date { color: #000; }
  .section__title, .card__title { color: #000; }
  .doc__body { column-count: 2; }
  .doc__nav { display: none; }
  .cells, .cells > *, .card, .contact-box, .doc__rule, .doc__foot {
    border-color: #999;
  }
  .contact-box { background: none; }
  .link--light, .link--gold { color: #000; background: none; }
}
