/* public-statics-b.css | Shared stylesheet for the public static pages (Contact, Cookie Policy, Privacy, Terms). */


:root {
    /* byte-reused from public-checker-b.css:6-35 (checker-established dira and pub locals, each already evidence-commented in the checker :root) */
    --dira-motion-duration: 120ms;                                          /* checker css:6 */
    --dira-label-tracking: 0.05em;                                          /* checker css:7 */
    --pub-content-max: 1450px;                                              /* checker css:11 (layout.publicContentMaxWidth) */
    --pub-card-gradient: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%); /* checker css:13 (direction.tokens.cardGradientOnWash) */
    --pub-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); /* checker css:14 (direction.tokens.cardShadow) */
    --pub-nav-pill-bg: rgb(255 255 255 / 20%);                              /* checker css:16 */
    --pub-nav-pill-border: #FAFAFA;                                         /* checker css:17 */
    --pub-nav-pill-shadow: 0 1px 3px rgb(0 0 0 / 6%);                        /* checker css:18 */
    --pub-logo-h: 36px;                                                     /* checker css:35 (brand.logoScale nav standard, design 0.9) */
    /* NEW local (statics rule 10): document reading measure, widened per fix-round-1 F1 to adopt the report-document width standard */
    --pub-doc-max: 1100px;   /* CANDIDATE, aligned to design 0.9 layout.reportModalWidths.reportModal (1100px) */
}

*, *::before, *::after { box-sizing: border-box; }

/* --- no-horizontal-scroll hard rule (design 0.9 direction.rules); overflow-x clip idiom byte-reused from checker css:42,49 --- */
html { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
body { margin: 0; overflow-x: clip; font-family: var(--v2-font-ui); font-size: var(--v2-size-base); line-height: var(--v2-lh-normal); color: var(--v2-text-primary); background: var(--v2-bg-app); }
a { color: var(--v2-text-link); text-decoration: none; } /* checker css:60 red link vocabulary (text.link brand red) */
button { font-family: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* no-h-scroll: shrinkable grid/flex children + wrap on long content */
.doc, .doc__section, .form-field, .contact-card, .form-row, .pubfoot2__col, .doc-table td, .doc-table th, .pubnav__cluster, .pubnav__links { min-width: 0; }
.doc__body, .doc-table td, .doc-table th, .pending, .protection-note, .prefill-note, .doc__meta, .contact-hero__sub { overflow-wrap: anywhere; }


.review-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--v2-space-sm); padding: var(--v2-space-sm) var(--v2-space-md); background: var(--v2-bg-surface); border-bottom: 1px solid var(--v2-border-default); }
.review-bar__label { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); margin-right: var(--v2-space-sm); }
.review-bar button { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); background: var(--v2-bg-surface); border: 1px solid var(--v2-border-default); border-radius: var(--v2-radius-sm); padding: var(--v2-space-xs) var(--v2-space-smd); transition: background-color var(--dira-motion-duration) ease, border-color var(--dira-motion-duration) ease; }
.review-bar button:hover { background: var(--v2-hover-bg); }
.review-bar button[aria-pressed="true"] { background: var(--v2-selected-bg); border-color: var(--v2-border-focus); }
.page-frame { container-type: inline-size; position: relative; width: 100%; }
.page-frame.is-phone { width: 390px; max-width: calc(100% - 2 * var(--v2-space-lg)); height: 780px; margin: var(--v2-space-lg) auto; border: 1px solid var(--v2-border-strong); border-radius: var(--v2-radius-lg); overflow: auto; box-shadow: var(--v2-shadow-modal); } /* checker css:74 */

/* --- canvas: full live gradient over half-white, top-anchored (byte-reused checker css:76-77) --- */
.checker { display: flex; flex-direction: column; min-height: 100vh; background-color: var(--v2-bg-app); background-image: url(../../assets/images/bg-gradient.png); background-size: 100%; background-repeat: no-repeat; background-position: top; }

/* --- public nav chrome (byte-reused checker css:86-96, 107-109) --- */
.pubnav { display: flex; align-items: center; justify-content: space-between; gap: var(--v2-space-md); height: var(--v2-header-height); padding: 0 var(--v2-space-xl); background: transparent; }
.pubnav__brand { display: inline-flex; align-items: center; }
.wordmark { height: var(--pub-logo-h); width: auto; display: block; } /* checker css:88 (brand.logoScale 36px) */
.pubnav__cluster { display: flex; align-items: center; gap: var(--v2-space-xl); }
.pubnav__links { display: flex; align-items: center; gap: var(--v2-space-md); padding: var(--v2-space-smd) var(--v2-space-lg); background: var(--pub-nav-pill-bg); border: 1px solid var(--pub-nav-pill-border); border-radius: var(--v2-radius-full); box-shadow: var(--pub-nav-pill-shadow); backdrop-filter: blur(20px); }
.pubnav__links a { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); text-transform: uppercase; color: var(--v2-text-tertiary); }
.pubnav__links a:hover { color: var(--v2-accent); } /* red hover vocabulary */
/* active-nav (design 0.9 direction.rules: 2px red accent bar, active text dark-neutral). The checker carries no active-link treatment, so the direction red 2px-bar vocabulary is applied, not invented. */
.pubnav__links a.is-active { color: var(--v2-text-primary); border-bottom: 2px solid var(--v2-accent); }
.pubnav__actions { display: flex; align-items: center; gap: var(--v2-space-md); }
.balance { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); color: var(--v2-code-inline-fg); background: var(--v2-code-inline-bg); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-sm); padding: var(--v2-space-xs) var(--v2-space-sm); }
.link-quiet { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
.icon { display: inline-flex; flex: 0 0 auto; }
.icon--sm { width: 16px; height: 16px; }
.icon--md { width: 20px; height: 20px; }
.nav-toggle { display: none; } /* byte-copied nav-toggle button stays in the DOM but is hidden: the chrome extract carries no drawer, so the pill wraps on mobile instead (see @container) */

/* --- buttons (byte-reused checker css:112-118) --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--v2-space-sm); font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); border-radius: var(--v2-radius-md); padding: var(--v2-space-sm) var(--v2-space-md); border: 1px solid transparent; transition: background-color var(--dira-motion-duration) ease, color var(--dira-motion-duration) ease; }
.btn--danger { background: var(--v2-accent); color: var(--v2-text-inverse); }
.btn--danger:hover { background: var(--v2-accent-hover); }
.btn--danger:disabled { background: var(--v2-text-tertiary); color: var(--v2-text-inverse); opacity: 0.6; cursor: default; }
.btn--secondary { background: var(--v2-bg-surface); color: var(--v2-text-primary); border: 1px solid var(--v2-border-default); }
.btn--secondary:hover { background: var(--v2-hover-bg); }
.btn:focus-visible { outline: none; box-shadow: var(--v2-shadow-focus-ring); }

/* --- token-chip config placeholder (byte-reused checker css:409) --- */
.token-chip { display: inline-flex; align-items: center; font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); color: var(--v2-text-primary); background: var(--v2-code-inline-bg); border: 1px dashed var(--v2-border-strong); border-radius: var(--v2-radius-sm); padding: 0 var(--v2-space-xs); }

/* --- alert family (byte-reused checker css:370-381) + success variant completing the family (design alert familyRule) --- */
.alert { display: none; align-items: flex-start; gap: var(--v2-space-md); background: var(--v2-bg-surface); border: 1px solid var(--v2-border-subtle); border-left: 3px solid var(--v2-border-strong); border-radius: var(--v2-radius-md); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-md) var(--v2-space-lg); }
.alert__icon { flex: 0 0 auto; display: inline-flex; color: var(--v2-text-secondary); }
.alert__body { display: flex; flex-direction: column; gap: var(--v2-space-xs); }
.alert__title { font-size: var(--v2-size-base); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); margin: 0; }
.alert__note { font-size: var(--v2-size-sm); color: var(--v2-text-tertiary); margin: 0; }
.alert--info { border-left-color: var(--v2-border-strong); }
.alert--info .alert__icon { color: var(--v2-text-secondary); }
.alert--danger { border-left-color: var(--v2-danger-border); }
.alert--danger .alert__icon { color: var(--v2-danger-fg); }
.alert--success { border-left-color: var(--v2-success-border); } /* completes the family (design alert familyRule), success edge #1A9F57 */
.alert--success .alert__icon { color: var(--v2-success-fg); }
.alert__link { align-self: flex-start; margin-top: var(--v2-space-xs); font-size: var(--v2-size-sm); color: var(--v2-text-link); }

/* --- page body --- */
.page-main { max-width: var(--pub-content-max); margin: 0 auto; padding: var(--v2-space-xl) var(--v2-space-mdl); } /* checker css:121 */

/* --- F2 rebuilt footer (pubfoot2): captured from the live .site-footer (footer-extract-2026-07-11.md), structure/hierarchy/links/spacing/hover preserved, colors+sizes+spacing mapped to --v2-* by nearest computed value --- */
.pubfoot2 { margin-top: auto; padding: var(--v2-space-2xl) 0 var(--v2-space-xl); background: var(--v2-bg-app); border-top: 1px solid var(--v2-border-default); font-size: var(--v2-size-xs); line-height: var(--v2-lh-normal); } /* live .site-footer main.css:318-324: pad 40/32, bg #F4F5F8->bg-app, border #E1E1E1->border-default, 12px->size-xs, lh18/12->lh-normal */
.pubfoot2__inner { max-width: var(--pub-content-max); margin: 0 auto; padding: 0 var(--v2-space-mdl); } /* live .container (max-width 1450, gutter 20->mdl) */


.pubfoot2__logo { display: inline-flex; align-items: center; }
.pubfoot2__logo img { height: var(--pub-logo-h); width: auto; display: block; } /* live footer logo has no size rule; sized to the brand.logoScale nav standard (36px) */
.pubfoot2__desc { color: var(--v2-text-secondary); font-weight: var(--v2-weight-medium); margin-top: var(--v2-space-md); max-width: 40ch; } /* main.css:331-336: grey-700 #696D6D->text-secondary, 500->weight-medium, 16->space-md, width 80% -> readable measure */

.pubfoot2__link { color: var(--v2-text-primary); transition: color var(--dira-motion-duration) ease; } /* main.css:337-340: grey-900 #3C3D3D->text-primary (dark link, preserves links-darker-than-desc), .3s->dira 120ms */
.pubfoot2__link:hover { color: var(--v2-accent); } /* main.css:341-343: hover danger-400 #D02827->accent */
.pubfoot2__social-list { display: flex; align-items: center; flex-wrap: wrap; gap: var(--v2-space-lg); list-style: none; margin: 0; padding: 0; } /* main.css:349-353: gap 24->lg */
.pubfoot2__social-link { display: inline-flex; color: var(--v2-text-primary); } /* main.css:354-356: grey-900->text-primary; live has no hover on social, none added */
.pubfoot2__brand-wrap { display: flex; align-items: center; gap: var(--v2-space-sm); color: var(--v2-text-primary); } /* main.css:371-376: gap 10->sm(8), grey-900->text-primary */
.pubfoot2__brand-logo { width: 137px; } /* CANDIDATE: live .footer_brand-logo width 137px (main.css:364-366); no width token exists for this fixed brand asset */
.pubfoot2__pay { display: inline-flex; align-items: center; gap: var(--v2-space-sm); margin: 0; color: var(--v2-text-primary); }
.pubfoot2__pay-logo { width: 16px; height: 16px; flex: none; } /* fixed brand mark, sized like the 16px X icon in .pubfoot2__social-list; no icon-size token for an external mark */

/* ============================ Contact page ============================ */
.contact-hero { text-align: center; margin-bottom: var(--v2-space-xl); }
.contact-hero__title { font-size: var(--v2-size-3xl); line-height: var(--v2-lh-tight); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin: 0; } /* hero type checker css:124 */
.contact-hero__sub { font-size: var(--v2-size-lg); color: var(--v2-text-secondary); margin: var(--v2-space-sm) auto 0; max-width: 60ch; }
/* cards-soft anatomy (white-anchored gradient + subtle border + radius + --pub-card-shadow), reused from checker .rcard css:315 */
.contact-card { width: min(720px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: var(--v2-space-md); background: var(--pub-card-gradient); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-lg); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-xl); } /* F1.2: card measure 720 */
/* F1.3: Name + Email side by side inside the widened card; collapses to one column at 767 */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-md); align-items: start; }
.form-field { display: flex; flex-direction: column; gap: var(--v2-space-xs); }
.form-field > label { font-size: var(--v2-size-sm); font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); }
.form-field input, .form-field textarea { width: 100%; font-family: inherit; font-size: var(--v2-size-base); line-height: var(--v2-lh-normal); color: var(--v2-text-primary); background: var(--v2-bg-surface-sunken); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-md); padding: var(--v2-space-sm) var(--v2-space-md); }
.form-field textarea { min-height: 160px; resize: vertical; }
/* engine input focus ring vocabulary (v2-tokens shadows.inputFocusRing); mirrors the checker editor focus intent, reused not invented */
.form-field input:focus, .form-field textarea:focus { outline: none; box-shadow: var(--v2-shadow-input-focus-ring); border-color: var(--v2-border-focus); }
.form-field input:disabled { color: var(--v2-text-tertiary); cursor: default; }
.form-field__error { display: none; font-size: var(--v2-size-xs); color: var(--v2-danger-fg); } /* field-level error line, semantic danger token (#892B2B namespace) */
.protection-note { font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin: 0; }
.prefill-note { display: none; font-size: var(--v2-size-xs); color: var(--v2-text-tertiary); margin: 0; }
.form-actions { display: flex; justify-content: flex-end; }
.contact-reject, .contact-sent { display: none; }
.contact-sent__link { align-self: flex-start; }
/* contact state logic (body classes; same body-class + demo-strip mechanism the checker uses) */
.is-prefilled .prefill-note { display: block; }
/* prefilled email reads as disabled in this state; a real disabled attribute cannot be class-toggled in static CSS, so the disabled look is rendered here */
.is-prefilled .form-field--email input { pointer-events: none; color: var(--v2-text-tertiary); background: var(--v2-bg-app); }
.is-error-validation .form-field--email input { border-color: var(--v2-danger-border); }
.is-error-validation .form-field--email .form-field__error { display: block; }
.is-rejected .contact-reject { display: flex; }
.is-sent .contact-form { display: none; }
.is-sent .contact-sent { display: flex; }

/* ==================== Document template (cookie, privacy, terms) ==================== */
.doc { width: min(var(--pub-doc-max), 100%); margin: 0 auto; background: var(--pub-card-gradient); border: 1px solid var(--v2-border-subtle); border-radius: var(--v2-radius-lg); box-shadow: var(--pub-card-shadow); padding: var(--v2-space-xl); }
.doc__title { font-size: var(--v2-size-2xl); font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-tight); color: var(--v2-text-primary); margin: 0; }
.doc__meta { font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-text-tertiary); margin: var(--v2-space-xs) 0 0; }
.doc__section { margin-top: var(--v2-space-xl); display: flex; flex-direction: column; gap: var(--v2-space-sm); }
.doc__h2 { font-size: var(--v2-size-lg); font-weight: var(--v2-weight-bold); color: var(--v2-text-primary); margin: 0; } /* rule 11 requested weight-semibold; the token set omits 600 (design 0.4), mapped to weight-bold (700) */
.doc__body { font-size: var(--v2-size-base); line-height: var(--v2-lh-relaxed); color: var(--v2-text-secondary); margin: 0; max-width: 75ch; } /* F1.5 branch B: at --pub-doc-max 1100 the raw body measure runs ~130 chars (>90 at 1280), so body is capped at 75ch; tables and headings keep the full card width */
.doc__body a { color: var(--v2-text-link); } /* red in-document link vocabulary */

/* pending-copy marker (rule 12): info-family treatment, never red */
.pending { display: flex; align-items: flex-start; gap: var(--v2-space-sm); border: 1px solid var(--v2-border-subtle); border-left: 3px solid var(--v2-border-strong); border-radius: var(--v2-radius-md); background: var(--v2-bg-surface-sunken); padding: var(--v2-space-sm) var(--v2-space-md); font-size: var(--v2-size-sm); color: var(--v2-text-secondary); }
.pending__icon { flex: 0 0 auto; display: inline-flex; color: var(--v2-text-secondary); }
.pending strong { color: var(--v2-text-primary); font-weight: var(--v2-weight-medium); }

/* document table (cookie policy) */
.doc-table { width: 100%; border-collapse: collapse; margin-top: var(--v2-space-sm); }
.doc-table th { text-align: left; font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-text-tertiary); font-weight: var(--v2-weight-medium); padding: var(--v2-space-sm); border-bottom: 1px solid var(--v2-border-subtle); }
.doc-table td { font-size: var(--v2-size-sm); color: var(--v2-text-secondary); padding: var(--v2-space-sm); border-bottom: 1px solid var(--v2-border-subtle); vertical-align: top; }
.doc-table td:first-child, .doc-table th:first-child { font-weight: var(--v2-weight-medium); color: var(--v2-text-primary); }
.doc-table .mono { font-family: var(--v2-font-mono); font-size: var(--v2-size-xs); }

/* ==========================================================================
   Responsive (container queries on .page-frame; breakpoints 991/767/580,
   reused from checker css:452-472). No drawer in the chrome extract, so the
   pill wraps on mobile and the byte-copied nav-toggle stays hidden.
   ========================================================================== */
@container (max-width: 991px) {
    .pubnav { flex-wrap: wrap; height: auto; padding-top: var(--v2-space-sm); padding-bottom: var(--v2-space-sm); }
    .pubnav__cluster { flex-wrap: wrap; gap: var(--v2-space-md); }
    .pubnav__links { flex-wrap: wrap; }
    /* live footer media.css:9-16 (<=991): row stacks to a column, desc full width */

    .pubfoot2__desc { max-width: 100%; }
}
@container (max-width: 767px) {
    .page-main { padding: var(--v2-space-md); }
    .pubnav { padding: 0 var(--v2-space-md); }
    .form-row { grid-template-columns: minmax(0, 1fr); } /* F1.3: Name + Email stack at 767 */
    /* live footer media.css:288-315 (<=767): cols full width, menu stacks, links 14px */


    .pubfoot2__link { font-size: var(--v2-size-sm); line-height: var(--v2-lh-normal); } /* 14->size-sm */
    /* cookie table collapses to stacked definition rows (label above value); no horizontal scroll */
    .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
    .doc-table thead { display: none; }
    .doc-table tr { border-bottom: 1px solid var(--v2-border-subtle); padding: var(--v2-space-sm) 0; }
    .doc-table td { border: none; padding: 2px 0; }
    .doc-table td::before { content: attr(data-label); display: block; font-size: var(--v2-size-xs); text-transform: uppercase; letter-spacing: var(--dira-label-tracking); color: var(--v2-text-tertiary); }
}
@container (max-width: 580px) {
    .contact-hero__title { font-size: var(--v2-size-2xl); }
    .doc { padding: var(--v2-space-lg); }
}

/* @@CONTACT-F2-BEHAVIOR-START (appended F2 behavior wiring; token-only; excluded from the byte-fidelity gate by exact sentinels; the contract page is animated, not rebuilt) */
.copy-status { display: none; max-width: 60ch; margin: var(--v2-space-2xl) auto; padding: var(--v2-space-md) var(--v2-space-lg); text-align: center; font-size: var(--v2-size-base); color: var(--v2-text-secondary); }
.copy-pending .checker { display: none; }
.copy-failed .checker { display: none; }
.copy-failed .copy-status { display: block; }
#rejectAlert, #sentAlert { outline: none; }
#rejectAlert:focus-visible, #sentAlert:focus-visible { box-shadow: var(--v2-shadow-focus-ring); }
.form-field.is-invalid input, .form-field.is-invalid textarea { border-color: var(--v2-danger-border); box-shadow: var(--v2-shadow-input-invalid-ring); }
.form-field.is-invalid .form-field__error { display: block; }
.contact-form[aria-busy="true"] { opacity: 0.7; }
/* @@CONTACT-F2-BEHAVIOR-END */

.pubfoot2__row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  align-items: start; gap: var(--v2-space-2xl);
}
.pubfoot2__col, .pubfoot2__group { min-width: 0; }
.pubfoot2__menu {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--v2-space-smd); list-style: none; margin: 0; padding: 0;
}
.pubfoot2__title {
  margin: 0 0 var(--v2-space-md); font-size: var(--v2-size-sm);
  font-weight: var(--v2-weight-bold); line-height: var(--v2-lh-normal);
  color: var(--v2-text-primary);
}
.pubfoot2__meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--v2-space-lg);
  margin-top: var(--v2-space-xl); padding-top: var(--v2-space-lg);
  border-top: 1px solid var(--v2-border-subtle);
}
@container (max-width: 991px) {
  .pubfoot2__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v2-space-xl); }
  .pubfoot2__desc { max-width: 100%; }
}
@container (max-width: 767px) {
  .pubfoot2__row { grid-template-columns: minmax(0, 1fr); }
  .pubfoot2__col { width: 100%; }
  .pubfoot2__menu { gap: var(--v2-space-md); }
  .pubfoot2__link, .pubfoot2__pay { font-size: var(--v2-size-sm); line-height: var(--v2-lh-normal); }
  .pubfoot2__meta { flex-direction: column; align-items: flex-start; }
}
