/* prototypes/live/terms-and-conditions/page.css — live clone of www.applicaa.com/terms-and-conditions
 *
 * DEV-ONLY prototype stylesheet for the Webflow "policy" template (light hero + cream document
 * with a table of contents). Four live pages use that template - cookie-policy, privacy-policy,
 * terms-and-conditions, login-sign-up-help-page - and the POLICY TEMPLATE block below is
 * byte-identical in all four (scoped `.live-policy`), so it can be cut into
 * prototypes/live/_shared/ as one file. Only the last block is page-specific.
 *
 * The document is the DS Doc Layout pattern (`.doc-layout` / `.doc-toc` / `.doc-main` /
 * `.doc-section`). Its geometry is overridden here to live's: an 800px document column, a 344px
 * contents column, a 24px (32px on terms) gap, and the contents column sticky from the very top
 * with 88px of padding, instead of the pattern's 220px column and fluid gap.
 *
 * Rules (ai-docs/coding-standards.md §2 Overrides): narrowest property, no !important, colours
 * only through tokens. Live breakpoints are 991px / 767px / 479px (Webflow); the pattern's own
 * collapse is 1000px.
 */

/* SHARED-TEMPLATE-COPY START
 * From admissions-post16/page.css Part A, A1 (page surface), re-scoped to this page's root.
 * Live pages are white; the DS `.app` default is page-bg. */
body.app:has(.live-terms-and-conditions) ,
.live-terms-and-conditions { background-color: var(--color-paper); }
/* SHARED-TEMPLATE-COPY END */

/* POLICY TEMPLATE START ══════════════════════════════════════════════════════════════════════ */

/* P1 · Hero. live: .hero-light-section — sky wash (#2aabec at 40% → 0), min-height 360,
 * padding 88/12/60 (the 88 is the spacer under live's fixed header), title wrapper padded 80.
 * ≤991: no min-height, 48/32, wrapper 40. ≤767: bottom 24. */
.live-policy .lv-policy-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 360px;
  padding-top: 88px; padding-bottom: 60px; padding-inline: 12px;
  background-image: linear-gradient(color-mix(in srgb, var(--color-product-sky) 40%, transparent),
                                    color-mix(in srgb, var(--color-product-sky) 0%, transparent));
  text-align: center;
}
.live-policy .lv-policy-hero-inner {
  display: flex; flex-direction: column; align-items: center; row-gap: 16px;
  width: 100%; max-width: 984px; padding-top: 80px;
}
.live-policy .lv-policy-title { max-width: 720px; margin-block: 0; }  /* live 660 at 51px; DS h1 is 56px */
.live-policy .lv-policy-desc  { max-width: 806px; margin-block: 0; }
@media (max-width: 991px) {
  .live-policy .lv-policy-hero { min-height: 0; padding-top: 48px; padding-bottom: 32px; }
  .live-policy .lv-policy-hero-inner { padding-top: 40px; }
}
@media (max-width: 767px) {
  .live-policy .lv-policy-hero { padding-bottom: 24px; }
}

/* P2 · Document band. live: .policy-body — cream, padding 0 12 48. */
.live-policy .lv-policy-body { padding-top: 0; padding-bottom: 48px; padding-inline: 12px; }

/* P3 · Doc Layout geometry → live's. live: .page-horizontal-container (row-reverse, gap 24,
 * centred) — document 800, contents flex:1 up to 344. `.lv-policy-toc-end` puts the contents
 * column on the right (cookie, privacy, login); without it it sits left (terms, whose live
 * container is .page-horizontal-container-2: row, gap 32). */
@media (min-width: 1001px) {
  .live-policy .doc-layout {
    grid-template-columns: minmax(0, 344px) minmax(0, 800px);
    column-gap: 32px;
    justify-content: center;
    max-width: 1224px;
  }
  .live-policy .doc-layout.lv-policy-toc-end {
    grid-template-columns: minmax(0, 800px) minmax(0, 344px);
    column-gap: 24px;
  }
  .live-policy .lv-policy-toc-end .doc-toc { grid-column: 2; grid-row: 1; }
  .live-policy .lv-policy-toc-end .doc-main { grid-column: 1; grid-row: 1; }
  /* live: .table-of-paragraph-content — sticky at top 0 with 88px padding (clears the header). */
  .live-policy .doc-toc { top: 0; padding-top: 88px; }
}
/* ≤1000 (pattern collapse): the contents list stacks above the document as a white card
 * (live ≤767 card; live hides it 768–991 — kept visible here, the pattern hides nothing). */
@media (max-width: 1000px) {
  .live-policy .doc-layout { row-gap: 0; }
  .live-policy .doc-toc {
    margin-top: 12px; padding: 16px;
    background-color: var(--color-paper); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
  }
}
@media (max-width: 479px) {
  /* live: max-height 240, scrolls, and tucks 40px under the first heading's padding. */
  .live-policy .doc-toc { max-height: 240px; overflow-y: auto; margin-bottom: -40px; }
}
/* live: .table-of-content-item.heading — a bold group label, 12px above (login only). */
.live-policy .lv-policy-toc-strong { font-weight: 700; margin-top: 12px; }
/* Live's contents links have no hover state (ix sweep 2026-11-22); the DS darkens them. Focus keeps
 * the DS treatment, and the scroll-spy's [data-on] link keeps its own colour. */
.live-policy .doc-toc-link:not([data-on]):hover { color: var(--color-ink-soft); }
.live-policy .doc-toc-list > .lv-policy-toc-strong:first-child { margin-top: 0; }

/* P4 · Document flow. live: .small-container.content-gap — one flex column, 10px gap. Sections
 * are flex columns with the same gap so the flow is identical to live's flat list. */
.live-policy .doc-main { row-gap: 10px; }
.live-policy .lv-policy-section { display: flex; flex-direction: column; row-gap: 10px; scroll-margin-top: 24px; }

/* Headings carry live's spacing as padding + a negative margin (live anchors land with the
 * padding above the text). live: .paragraph-heading-0 pt 96 / mt -12 (≤991 pt 64);
 * .paragraph-heading-1 pt 96 / mt -24 (≤991 pt 52); .paragraph-heading-1b pt 88 / mt -24;
 * .paragraph-heading-2 mt 12 / mb 8. The first heading has no negative margin. */
.live-policy .lv-policy-h0  { padding-top: 96px; margin-top: -12px; margin-bottom: 0; }
.live-policy .lv-policy-h1  { padding-top: 96px; margin-top: -24px; margin-bottom: 0; }
.live-policy .lv-policy-h1b { padding-top: 88px; margin-top: -24px; margin-bottom: 0; }
.live-policy .lv-policy-h2  { margin-top: 12px; margin-bottom: 8px; }
.live-policy .lv-policy-first { margin-top: 0; }
@media (max-width: 991px) {
  .live-policy .lv-policy-h0 { padding-top: 64px; }
  .live-policy .lv-policy-h1 { padding-top: 52px; }
}

/* Body copy. live: .paragraph-20px-0 20px (16px ≤767). DS: body-l (18), body-m ≤767. */
.live-policy .lv-policy-text {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-l); line-height: var(--line-height-body-l);
  margin-block: 0;
}
@media (max-width: 767px) {
  .live-policy .lv-policy-text { font-size: var(--font-size-body-m); line-height: var(--line-height-body-m); }
}
.live-policy .lv-policy-indent { margin-left: 2em; }               /* live: .indent-2 */
.live-policy .lv-policy-list   { padding-left: 40px; list-style-type: disc; }  /* live: ul default */
.live-policy .lv-policy-img    { width: 100%; height: auto; }      /* live: .hfilled-image */

/* POLICY TEMPLATE END ════════════════════════════════════════════════════════════════════════ */

/* PAGE-SPECIFIC (.live-terms-and-conditions) — none. */
