/* Bridge for pages whose content was written against the old stylesheets (premium-compact.css / styles_new.css).
   Maps their layout/button classes onto the new design tokens (home-new.css) so the pages can run inside the new
   shell WITHOUT loading the old CSS (which defines a conflicting header/footer/.btn). Load after home-new.css + page.css. */

.legacy .container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.legacy .section { padding: 56px 0; }
.legacy .section-title, .legacy .section h2:not([class]) { font-family: var(--font-display, "Fraunces", serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); margin: 0 0 12px; }
.legacy .section-subtitle, .legacy .lead { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.legacy h3:not([class]) { font-family: var(--font-display, "Fraunces", serif); font-weight: 500; font-size: 22px; color: var(--ink); }
.legacy p { color: var(--ink-2); }
.legacy a:not(.btn) { color: var(--green-deep); }

/* Old button variants → new */
.legacy .btn:not(.btn--primary):not(.btn--ghost):not(.btn--light):not(.btn--dark):not(.btn--wa) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-pill, 999px); font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.legacy .btn-primary { background: var(--green); color: #fff !important; box-shadow: 0 12px 24px -12px rgba(31,122,77,.75); }
.legacy .btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.legacy .btn-secondary, .legacy .btn-outline, .legacy .btn-light { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.legacy .btn-secondary:hover, .legacy .btn-outline:hover, .legacy .btn-light:hover { border-color: var(--green); color: var(--green-deep) !important; background: var(--green-soft); }
.legacy .btn-lg { padding: 16px 28px; font-size: 16px; }
.legacy .btn-block { width: 100%; }

/* Cards / grids commonly used by the old pages */
.legacy .card, .legacy .feature-card, .legacy .benefit-card, .legacy .plan-card, .legacy .info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); box-shadow: var(--shadow-1); padding: 24px; }
.legacy .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.legacy .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .legacy .grid-3, .legacy .grid-2 { grid-template-columns: 1fr; } .legacy .section { padding: 40px 0; } }

/* Old hero blocks */
.legacy .page-hero, .legacy .hero { padding: 56px 0 28px; }
.legacy .page-hero h1, .legacy .hero h1 { font-family: var(--font-display, "Fraunces", serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.015em; color: var(--ink); margin: 0 0 14px; }
.legacy .page-hero p, .legacy .hero p { color: var(--ink-2); font-size: 18px; max-width: 60ch; }

/* Forms */
.legacy input[type="text"], .legacy input[type="tel"], .legacy input[type="email"], .legacy input[type="number"], .legacy select, .legacy textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.legacy input:focus, .legacy select:focus, .legacy textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-ring); }
.legacy label { font-weight: 600; font-size: 14px; color: var(--ink); }

/* Neutralise old-shell leftovers if any remain inside content */
.legacy .site-header, .legacy .site-footer { display: none; }
