/* ============================================
   LEGAL + INNER PAGES (privacy, terms, contact)
   Styles these pages used but the group site never shipped.
   Ported from the Ascend Personal Solutions site, adapted to the light theme.
   ============================================ */

/* Nav */
.nav-inner { gap: var(--space-6); }
.nav-logo { margin-right: auto; }
.btn-sm { padding: var(--space-2) var(--space-6); font-size: var(--text-xs); }
.nav-links { display: none; align-items: center; gap: var(--space-10); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--color-text-secondary); letter-spacing: var(--tracking-wide); transition: color var(--duration-fast) var(--ease-out-expo); }
.nav-link:hover, .nav-link.active { color: var(--color-text-primary); }
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 100%; height: 1px; background: var(--color-text-primary); transition: all var(--duration-fast) var(--ease-out-expo); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile { display: none; position: fixed; inset: 0; background: #ffffff; z-index: calc(var(--z-nav) - 1); padding: var(--space-32) var(--space-8); }
.nav-mobile.active { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-8); }
.nav-mobile-link { font-size: var(--text-3xl); font-weight: var(--weight-light); color: var(--color-text-secondary); transition: color var(--duration-fast) var(--ease-out-expo); }
.nav-mobile-link:hover { color: var(--color-text-primary); }

/* EN | ES toggle */
.lang-toggle { display: flex; align-items: center; gap: var(--space-1); flex-shrink: 0; }
.lang-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--tracking-wider); color: var(--color-text-muted); padding: var(--space-1) var(--space-2); transition: color 0.2s ease; line-height: 1; }
.lang-btn:hover, .lang-btn--active { color: var(--color-text-primary); }
.lang-sep { font-size: var(--text-xs); color: var(--color-text-muted); user-select: none; }

/* Page hero: left aligned so it lines up with the content below */
.page-hero { padding: var(--space-48) 0 var(--space-16); border-bottom: 1px solid var(--color-border); }
.page-hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: var(--weight-light); letter-spacing: var(--tracking-tight); color: var(--color-text-primary); margin-bottom: var(--space-4); }
.page-hero-subtitle { font-size: var(--text-lg); color: var(--color-text-secondary); font-weight: var(--weight-regular); }

/* Body copy */
.about-title { font-size: var(--text-3xl); font-weight: var(--weight-light); color: var(--color-text-primary); margin-bottom: var(--space-8); }
.about-text { font-size: var(--text-base); color: var(--color-text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-6); max-width: 720px; }

/* Card (no lift on hover) */
.card { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-10); transition: border-color var(--duration-base) var(--ease-out-expo); }
.card:hover { border-color: var(--color-border-hover); }
.card-title { font-size: var(--text-xl); font-weight: var(--weight-medium); color: var(--color-text-primary); margin-bottom: var(--space-4); }
.card-text { font-size: var(--text-base); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

/* Accordion: sections are OPEN by default so the full policy text is
   visible to readers, crawlers and compliance reviewers. Click to collapse. */
.accordion { border-top: 1px solid var(--color-border); }
.accordion-item { border-bottom: 1px solid var(--color-border); scroll-margin-top: 120px; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-6) 0; background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; }
.accordion-title { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--color-text-primary); transition: color var(--duration-fast) var(--ease-out-expo); }
.accordion-trigger:hover .accordion-title { color: var(--color-accent); }
.accordion-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-text-muted); transform: rotate(180deg); transition: transform var(--duration-base) var(--ease-out-expo); }
.accordion-item.collapsed .accordion-icon { transform: rotate(0deg); }
.accordion-content { padding-bottom: var(--space-8); }
.accordion-item.collapsed .accordion-content { display: none; }
.accordion-text { font-size: var(--text-base); color: var(--color-text-secondary); line-height: var(--leading-relaxed); max-width: 720px; margin-bottom: var(--space-4); }
.accordion-content ul, .accordion-content ol { color: var(--color-text-secondary); line-height: var(--leading-relaxed); padding-left: var(--space-6); margin-bottom: var(--space-4); max-width: 720px; }
.accordion-content li { margin-bottom: var(--space-2); }
[id] { scroll-margin-top: 120px; }

/* Footer: column layout used by these pages */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); margin-bottom: var(--space-16); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: start; } }
.footer-brand { max-width: 300px; }
.footer-logo-wrap { margin-bottom: var(--space-4); }
.footer-grid .footer-logo { height: 96px; }
.footer-tagline { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--color-text-primary); margin-bottom: var(--space-2); }
.footer-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.footer-heading { font-size: var(--text-xs); font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-widest); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.footer-grid .footer-links { display: block; list-style: none; padding: 0; }
.footer-grid .footer-links li { margin-bottom: var(--space-3); }
.footer-grid .footer-links a { font-size: var(--text-sm); color: var(--color-text-secondary); }
.footer-grid .footer-links a:hover { color: var(--color-accent); }
.footer-bottom { text-align: left; }

/* Phones: keep logo, language switch and menu button on one line */
@media (max-width: 767px) {
  .nav-inner { gap: var(--space-3); }
  .nav-logo img { height: 44px; }
  .nav-inner .nav-cta.btn-sm { display: none; }
}
