/* =============================================
   INVESTO Support and Privacy pages
   Loads after styles.css (tokens, nav, brand, store buttons) and stores.css.
   Token names from the earlier theme are mapped onto the current ones here.
   ============================================= */

body.legal {
    --paper: var(--bg); --cream: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3);
    --gold: var(--green-text); --gold-2: var(--green-text); --green-deep: var(--green-text);
    --ink-70: var(--ink-2); --ink-55: var(--ink-3); --paper-line: var(--line);
    --font-display: var(--serif); --font-mono: var(--font); --bg-3: var(--bg-2);
}

body.legal { background: var(--paper); color: var(--ink); }
.legal ::selection { background: var(--ink); color: var(--paper); }
.legal a:focus-visible, .legal button:focus-visible { outline-color: var(--green-deep); }
.legal .nav a:focus-visible, .legal .legal-footer a:focus-visible { outline-color: var(--gold); }

/* Header band */
.page-header { background: var(--bg-2); padding: calc(var(--nav-h) + clamp(44px, 8vw, 96px)) 0 clamp(48px, 6vw, 84px); border-bottom: 1px solid var(--line); }
.page-header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--gold); }
.page-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.page-header h1 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 104px); line-height: 1; letter-spacing: -.03em; color: var(--cream); }
.page-header .subtitle, .page-header .updated { margin-top: 20px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-2); }
.page-header .updated { font-size: 14px; color: var(--text-3); }

/* Reading column */
.legal .container { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(88px, 10vw, 140px); }
.legal .container > * { max-width: 800px; }
.callout { margin-bottom: 36px; padding: 28px 32px; border-radius: 20px; background: var(--ev-2); color: var(--on-ev); border-left: 0; }
.callout p { font-family: var(--font-display); font-weight: 400; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.2; letter-spacing: -.02em; }
.intro { font-size: 19px; line-height: 1.7; color: var(--ink-70); margin-bottom: 20px; text-wrap: pretty; }

.policy-section { padding: 40px 0 36px; border-top: 1px solid var(--paper-line); }
.policy-section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(27px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -.022em; color: var(--ink); margin-bottom: 18px; }
.policy-section h2::before { content: attr(data-num); display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--green-deep); }
.policy-section p { margin-top: 14px; font-size: 17px; line-height: 1.72; color: var(--ink-70); text-wrap: pretty; }
.policy-section p:first-of-type { margin-top: 0; }
.policy-section ul { margin: 16px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.policy-section li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.65; color: var(--ink-70); }
.policy-section li::before { content: ''; position: absolute; left: 0; top: .78em; width: 14px; height: 1.5px; background: var(--green-deep); }
.policy-section strong { color: var(--ink); font-weight: 700; }
.legal .container a:not(.btn-email), .legal .faq-a a { color: var(--green-deep); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--green-text) 45%, transparent); transition: border-color .2s; }
.legal .container a:not(.btn-email):hover, .legal .faq-a a:hover { border-color: var(--green-deep); }

/* Support */
.contact-card { margin-bottom: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--surface); border: 1px solid var(--paper-line); box-shadow: 0 40px 80px -40px rgba(6, 32, 18, .35); }
.contact-card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(29px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
.contact-card p { margin-top: 12px; max-width: 34em; font-size: 17px; line-height: 1.65; color: var(--ink-70); }
.btn-email { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 700; letter-spacing: -.005em; word-break: break-word; transition: background .25s, transform .25s var(--ease); }
.btn-email:hover { transform: translateY(-2px); }
.contact-card .response-time { margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em; color: var(--ink-55); }

.faq-header { margin-bottom: 8px; }
.legal .faq-header .page-eyebrow { color: var(--green-text); }
.faq-section-title { margin-top: 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); }
.legal .faq-list { margin-top: 28px; border-top: 1px solid var(--ink); }
.legal .faq-item { border-bottom: 1px solid var(--paper-line); }
.legal .faq-trigger { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 72px; padding: 22px 0; text-align: left; background: none; border: 0; cursor: pointer; color: var(--ink); transition: color .2s; }
.legal .faq-trigger:hover { color: var(--green-deep); }
.legal .faq-q { font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -.015em; }
.legal .faq-icon { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: var(--green-deep); transition: transform .45s var(--ease); }
.legal .faq-icon svg { width: 18px; height: 18px; }
.legal .faq-item.open .faq-icon { transform: rotate(135deg); }
.legal .faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.legal .faq-item.open .faq-body { grid-template-rows: 1fr; }
.legal .faq-body-inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.legal .faq-item.open .faq-body-inner { visibility: visible; transition-delay: 0s; }
.legal .faq-a { max-width: 40em; padding: 0 0 26px; font-size: 17px; line-height: 1.72; color: var(--ink-70); }
.legal .faq-a strong { color: var(--ink); }

/* Footer */
.legal-footer { background: var(--bg-3); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; }
.legal-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.legal-footer-links a { font-size: 15px; color: var(--text-2); transition: color .2s; min-height: 24px; }
.legal-footer-links a:hover { color: var(--gold-2); }
.legal-footer .footer-copy { flex-basis: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

@media (max-width: 640px) {
    .callout { padding: 22px 22px; }
    .btn-email { width: 100%; justify-content: center; text-align: center; padding: 14px 20px; }
}
