/* ============================================================
   CIVIS HOTELS — privacy.css
   Long-form reading typography for the Privacy Policy page.
   Tokens and chrome from shared.css — no redefinitions here.
   ============================================================ */

/* ============================================================
   PAGE SHELL
   ============================================================ */
.prv-main {
  /* Clear fixed nav (approx 80px height) with generous breathing room */
  padding-top: clamp(120px, 12vw, 160px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

/* ============================================================
   CENTERED READING COLUMN
   This is the one page where a centered column is correct.
   The container (max 1440px) is already set by .cv-container;
   .prv-layout imposes the reading column width inside it.
   ============================================================ */
.prv-layout {
  max-width: 72ch;
  /* 72ch is comfortably within the 65–75ch target at 16px base */
  margin-inline: auto;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.prv-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.prv-eyebrow {
  margin-bottom: 16px;
}

.prv-title {
  /* Slightly smaller than cv-h2 at max to keep proportions
     comfortable for a document heading, not a marketing hero */
  font-size: clamp(1.875rem, 1.5rem + 1.88vw, 2.5rem);
  margin-bottom: 16px;
}

.prv-updated {
  color: var(--ash-2);
}

/* ============================================================
   DRAFT WARNING BANNER
   ============================================================ */
.prv-draft-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(40px, 5vw, 60px);
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.prv-draft-banner__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ash-1);
}

.prv-draft-banner__text {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ash-1);
}

.prv-draft-banner__text strong {
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.prv-toc {
  margin-bottom: clamp(48px, 6vw, 72px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.4s var(--ease);
}

.prv-toc__label {
  margin-bottom: 16px;
}

.prv-toc__list {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prv-toc__list li {
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.prv-toc__list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ash-2);
  flex-shrink: 0;
  min-width: 2.2ch;
}

.prv-toc__link {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ash-1);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  line-height: 1.5;
}

.prv-toc__link:hover {
  color: var(--ink);
}

.prv-toc__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   BODY — sections container
   ============================================================ */
.prv-body {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 72px);
}

/* ============================================================
   INDIVIDUAL SECTION
   ============================================================ */
.prv-section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 clamp(16px, 2vw, 28px);
  scroll-margin-top: clamp(100px, 12vw, 130px);
  /* scroll-margin-top accounts for the fixed nav */
}

/* Section number: decorative, typographic, top-right of its column */
.prv-section__num {
  font-family: var(--display);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ash-2);
  letter-spacing: 0.04em;
  padding-top: 6px; /* align with h2 cap-height approx */
  text-align: right;
  font-optical-sizing: auto;
  user-select: none;
}

/* Section content column */
.prv-section__content {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 20px);
}

/* ============================================================
   HEADING HIERARCHY IN SECTIONS
   ============================================================ */

/* H2: Fraunces, section title */
.prv-h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.625rem);
  font-weight: 350;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
  /* No extra margin — the gap on .prv-section__content handles spacing */
}

/* H3: Inter, subsection label */
.prv-h3 {
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-top: clamp(6px, 1vw, 10px);
}

/* ============================================================
   BODY TEXT — primary reading type
   65–75ch measure enforced by .prv-layout, comfortable line-height
   ============================================================ */
.prv-text {
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.72;
  color: var(--ash-1);
}

.prv-text strong {
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   DEFINITION LIST
   ============================================================ */
.prv-dl {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.4s var(--ease);
}

.prv-dl__row {
  display: grid;
  grid-template-columns: minmax(140px, 30%) 1fr;
  gap: 0;
  padding: 14px clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}

.prv-dl__row:last-child {
  border-bottom: none;
}

.prv-dl__term {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  padding-right: 12px;
  display: flex;
  align-items: center;
}

.prv-dl__def {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--ash-1);
  line-height: 1.55;
  display: flex;
  align-items: center;
}

/* ============================================================
   LISTS
   ============================================================ */
.prv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}

.prv-list li {
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ash-1);
  position: relative;
  padding-left: 20px;
}

.prv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em; /* vertical center on first line */
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--ash-2);
}

.prv-list li strong {
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   NOTE BOX — important callout inside a section
   ============================================================ */
.prv-note-box {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.5vw, 24px);
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.prv-note-box__text {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ash-1);
}

.prv-note-box__text strong {
  font-weight: 500;
  color: var(--ink);
}

/* ============================================================
   PURPOSE BLOCKS (within finalita section)
   ============================================================ */
.prv-purpose {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   INLINE CODE
   ============================================================ */
.prv-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background-color: var(--line);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
  transition: background-color 0.4s var(--ease);
}

/* ============================================================
   LINKS
   ============================================================ */
.prv-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition:
    text-decoration-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.prv-link:hover {
  text-decoration-color: var(--ash-1);
}

.prv-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   PLACEHOLDER SPANS — clearly marked for legal review
   ============================================================ */
.prv-placeholder {
  background-color: oklch(85% 0 0 / 0.35);
  color: var(--ash-1);
  border-radius: 3px;
  padding: 0 4px;
  font-style: italic;
  font-size: 0.92em;
  transition: background-color 0.4s var(--ease);
}

html[data-theme="dark"] .prv-placeholder {
  background-color: oklch(40% 0 0 / 0.4);
}

/* ============================================================
   PAGE FOOTER (contact cue + back-to-top)
   ============================================================ */
.prv-footer {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.4s var(--ease);
}

.prv-footer__label {
  /* cv-eyebrow already styled */
}

.prv-footer__text {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ash-1);
}

.prv-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ash-2);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s var(--ease);
  width: fit-content;
}

.prv-back-top:hover {
  color: var(--ink);
}

.prv-back-top:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

/* Tablet: layout still has full 72ch, but section num collapses */
@media (max-width: 768px) {
  .prv-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .prv-section__num {
    display: none;
    /* On small screens section nums are removed — TOC numbering
       and section anchors are enough for orientation */
  }

  .prv-dl__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .prv-dl__term {
    padding-right: 0;
  }
}

/* Small mobile: tighten vertical rhythm */
@media (max-width: 390px) {
  .prv-toc {
    padding: 16px;
  }

  .prv-draft-banner {
    padding: 14px;
    gap: 10px;
  }

  .prv-note-box {
    padding: 14px;
  }
}
