/* ==========================================================================
   YieldVector OS — Unified Contact, Privacy & Terms (css/contact-legal.css)
   Inherits tokens and shared header/footer from tokens.css & liquid-glass.css
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--ink-body);
  font-family: var(--font-sans);
  overflow-x: clip;
}

/* Active Navigation Indicator */
.nav-menu a.is-current {
  position: relative;
  color: var(--brand-molten);
  font-weight: 700;
}

.nav-menu a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--brand-molten);
}

/* Layered Ambient Mesh */
.ambient-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(48% 40% at 14% 12%, rgba(196, 75, 26, 0.11) 0%, rgba(196, 75, 26, 0) 72%),
    radial-gradient(50% 42% at 86% 18%, rgba(31, 91, 99, 0.13) 0%, rgba(31, 91, 99, 0) 72%),
    radial-gradient(46% 38% at 50% 85%, rgba(60, 85, 112, 0.09) 0%, rgba(60, 85, 112, 0) 74%);
}

/* Liquid Glass Surface */
.cl-glass {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.44));
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid rgba(31, 42, 60, 0.12);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    var(--glass-shadow);
}

/* Main Rhythm */
.cl-main {
  padding: clamp(2.4rem, 4.4vw, 3.8rem) 0 clamp(3.2rem, 5.2vw, 4.6rem);
}

.cl-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3.5vw, 3rem);
}

.cl-hero {
  margin-bottom: 0;
}

.cl-title {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 2.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.026em;
  color: var(--ink-primary);
}

.accent-teal {
  color: var(--brand-teal);
}

.cl-lead {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink-body);
}

.cl-jump {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.cl-jump a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-teal);
  text-decoration: none;
}

.cl-jump a:hover {
  color: var(--brand-molten);
  text-decoration: underline;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
  align-items: start;
}

.contact-panel {
  padding: clamp(1.5rem, 3vw, 2.35rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.field-opt {
  font-weight: 500;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(31, 42, 60, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.66rem 0.82rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(31, 91, 99, 0.16);
}

.dpdp-notice {
  margin-top: 1.25rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(31, 91, 99, 0.06);
  border: 1px solid rgba(31, 91, 99, 0.18);
  font-size: 0.84rem;
  line-height: 1.56;
  color: var(--ink-body);
}

.dpdp-notice strong {
  color: var(--ink-primary);
}

.consent-row {
  margin-top: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.22rem;
  width: 17px;
  height: 17px;
  accent-color: var(--brand-teal);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-row label {
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.52;
  color: var(--ink-primary);
  cursor: pointer;
}

.consent-row a {
  color: var(--brand-teal);
  font-weight: 700;
  text-decoration: underline;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.89rem;
  font-weight: 600;
  line-height: 1.5;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback--error {
  color: #991B1B;
  background: rgba(220, 38, 38, 0.09);
  border: 1px solid rgba(220, 38, 38, 0.26);
}

.form-feedback--ok {
  color: #065F46;
  background: rgba(5, 150, 105, 0.10);
  border: 1px solid rgba(5, 150, 105, 0.28);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aside-card {
  padding: 1.45rem 1.55rem;
}

.aside-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.aside-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.93rem;
  line-height: 1.56;
  color: var(--ink-body);
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-molten);
}

.aside-list strong {
  color: var(--ink-primary);
}

.aside-card p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-body);
}

.aside-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Stacked Legal Sections (Full Panel Width — Zero Half-Screen Narrow Cap)
   ========================================================================== */
.legal-section {
  scroll-margin-top: 96px;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.legal-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(31, 42, 60, 0.12);
}

.legal-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 2.15vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.024em;
  color: var(--ink-primary);
}

.legal-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.legal-clause {
  scroll-margin-top: 96px;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(31, 42, 60, 0.09);
  width: 100%;
}

.legal-clause:first-of-type {
  padding-top: 0;
  border-top: none;
}

.legal-clause h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.legal-clause p {
  margin: 0 0 0.6rem;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.64;
  color: var(--ink-body);
}

.legal-clause p:last-child {
  margin-bottom: 0;
}

.legal-clause ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-clause li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.legal-clause strong {
  color: var(--ink-primary);
}

/* Responsive */
@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* === YVOS_CLEAN_LEGAL_PAGE === */
.legal-page-main {
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}

.legal-shell {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-hero {
  margin-bottom: 4px;
}

.legal-page-title {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  color: var(--ink-primary);
}

.legal-updated {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.legal-updated a {
  color: var(--brand-teal);
  font-weight: 600;
  text-decoration: none;
}

.legal-updated a:hover {
  text-decoration: underline;
}

.legal-card {
  padding: clamp(24px, 3.2vw, 36px);
  border-radius: 18px;
  scroll-margin-top: 96px;
}

.legal-card h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  color: var(--ink-primary);
}

.legal-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--brand-teal);
  font-weight: 600;
}

.legal-card h3 {
  margin: 20px 0 6px;
  font-size: 1.04rem;
  color: var(--ink-primary);
  scroll-margin-top: 96px;
}

.legal-card p {
  margin: 0 0 10px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.legal-card a {
  color: var(--brand-molten);
  font-weight: 600;
}

/* === YVOS_CONTACT_NEXT_CARD === */
.contact-next-card {
  padding: clamp(24px, 3vw, 32px);
  align-self: start;
}

.next-card-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: var(--ink-primary);
}

.next-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}

.next-steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-steps-list li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-teal);
  background: rgba(31, 91, 99, 0.10);
  padding: 3px 7px;
  border-radius: 6px;
}

.next-steps-list strong {
  font-size: 0.98rem;
  color: var(--ink-primary);
}

.next-steps-list span {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.next-card-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 42, 60, 0.10);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.next-card-note a {
  color: var(--brand-molten);
  font-weight: 600;
  text-decoration: none;
}

.next-card-note a:hover {
  text-decoration: underline;
}

/* === YVOS_LIQUID_GLASS_PAGE_V2 === */
.ambient-mesh {
  background-color: #EEF3F8;
  background-image:
    radial-gradient(ellipse 50% 40% at 88% 8%, rgba(31, 91, 99, 0.21) 0%, transparent 66%),
    radial-gradient(ellipse 50% 40% at 10% 24%, rgba(196, 75, 26, 0.145) 0%, transparent 68%),
    radial-gradient(ellipse 48% 38% at 84% 56%, rgba(60, 85, 112, 0.18) 0%, transparent 66%),
    radial-gradient(ellipse 50% 40% at 14% 84%, rgba(31, 91, 99, 0.18) 0%, transparent 68%);
}
