/* ==========================================================
   MilaanBook — inner pages (about, contact, pricing, solutions,
   industries, legal). Builds on site.css tokens. Light theme only.
   ========================================================== */

.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.section-tight { padding: 72px 0; }
.section-tight.flush-top { padding-top: 0; }
.btn-hero-primary { background: linear-gradient(180deg, #0a66d2 0%, var(--brand) 55%, #0a3f9e 100%); color: #fff; box-shadow: 0 6px 16px -6px rgba(3, 81, 181, .6); }
.btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(3, 81, 181, .7); }
.btn-hero-secondary, .btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-hero-secondary:hover, .btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-large { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Page hero (compact) ---------- */
.page-hero { position: relative; padding: 52px 0 56px; overflow: hidden; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(700px 320px at 85% -20%, rgba(3, 81, 181, .13), transparent 62%),
        radial-gradient(500px 260px at 0% 0%, rgba(253, 158, 14, .11), transparent 60%),
        linear-gradient(#fff, #f6f9fe);
}
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 55% 90% at 50% 0%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 90% at 50% 0%, #000 10%, transparent 75%);
}
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); transition: color .15s; }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: 9px; opacity: .6; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.07; margin: 16px 0 16px; max-width: 18ch; }
.page-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero.center .crumbs { justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero.center .hero-actions { justify-content: center; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row i { color: var(--brand); }
.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

/* "What you get" panel beside a solution hero */
.glance { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.glance h3 { font-size: 15px; font-family: var(--font-body); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.glance ul { display: grid; gap: 12px; }
.glance li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.glance li i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 14px; }
.glance li:nth-child(even) i { background: var(--accent-50); color: #d98200; }
.glance li:nth-child(3n) i { background: var(--ok-50); color: var(--ok); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
    padding: 26px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; font-size: 17px; background: var(--brand-50); color: var(--brand); }
.card.t2 .ic { background: var(--accent-50); color: #d98200; }
.card.t3 .ic { background: var(--ok-50); color: var(--ok); }
.card.t4 .ic { background: #e0f4f6; color: #0e8fa0; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.check-list { display: grid; gap: 9px; margin-top: 14px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; background: var(--ok-50); color: var(--ok); }

.block-head { max-width: 660px; margin-bottom: 36px; }
.block-head.center { margin-inline: auto; text-align: center; }
.block-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 12px 0 10px; }
.block-head p { color: var(--ink-3); font-size: 17px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips.center { justify-content: center; }
a.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.story p { font-size: 17px; margin-bottom: 16px; }
.story p:last-child { margin-bottom: 0; }
.story .quote {
    position: relative; padding: 32px; border-radius: var(--r-lg); color: #fff; font-family: var(--font-display);
    font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em;
    background: radial-gradient(400px 200px at 100% 0%, rgba(253, 158, 14, .35), transparent 60%), var(--ink);
}
.story .quote small { display: block; margin-top: 16px; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: #a9bbd8; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vm .card { padding: 32px; }
.vm .card p + p { margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.form-card { padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 24px; margin-bottom: 4px; }
.form-card > p { color: var(--ink-3); margin-bottom: 22px; font-size: 15px; }
.contact-form { display: grid; gap: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.form-status.ok { display: block; background: var(--ok-50); color: #0b7a4c; }
.form-status.err { display: block; background: var(--warn-50); color: #b42327; }
.info-stack { display: grid; gap: 14px; }
.info-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.info-card .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.info-card:nth-child(2) .ic { background: var(--accent-50); color: #d98200; }
.info-card:nth-child(3) .ic { background: var(--ok-50); color: var(--ok); }
.info-card h4 { font-size: 15px; font-family: var(--font-body); font-weight: 700; margin-bottom: 2px; }
.info-card p, .info-card a { font-size: 14.5px; color: var(--ink-3); }
.info-card a:hover { color: var(--brand); }
.info-card .social { margin-top: 8px; }

/* ---------- Pricing ---------- */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 15px 20px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; color: var(--ink); position: sticky; left: 0; background: #fff; z-index: 1; }
.compare thead th:first-child { background: var(--bg-soft); }
.compare thead th { position: sticky; top: 0; background: var(--bg-soft); font-family: var(--font-display); color: var(--ink); font-size: 15px; }
.compare thead th.pop { background: var(--ink); color: #fff; }
.compare td.pop { background: rgba(3, 81, 181, .04); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok); }
.compare .no { color: #b8c2d4; }

/* ---------- Solution detail ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps.compact .step { padding: 26px; }
.steps.compact .step::before { font-size: 40px; margin-bottom: 10px; }

/* ---------- Legal pages ---------- */
.policy-hero { position: relative; padding: 52px 0 44px; overflow: hidden; }
.policy-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 85% -20%, rgba(3, 81, 181, .12), transparent 62%), radial-gradient(500px 240px at 0% 0%, rgba(253, 158, 14, .1), transparent 60%), linear-gradient(#fff, #f6f9fe); }
.policy-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13px; font-weight: 600; }
.policy-title { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 12px; }
.policy-subtitle { font-size: 18px; color: var(--ink-2); max-width: 66ch; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.meta-item i { color: var(--brand); }
.policy-content { padding: 24px 0 88px; }
.policy-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; }
.policy-sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.toc-wrapper { padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.toc-title { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 10px; }
.toc-nav { display: grid; gap: 2px; }
.toc-link { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.toc-link:hover { background: var(--bg-soft); color: var(--ink); }
.toc-link.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.toc-number { flex: none; width: 18px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.toc-link.active .toc-number { color: var(--brand); }

.policy-main { min-width: 0; }
.policy-section { padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.policy-section:first-child { padding-top: 6px; }
.section-heading { display: flex; gap: 10px; align-items: baseline; font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.heading-number { color: var(--accent); font-family: var(--font-display); }
.subsection-heading { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.section-content p { margin-bottom: 14px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.section-content a { color: var(--brand); font-weight: 500; }
.section-content a:hover { text-decoration: underline; }
.section-content code { padding: 2px 7px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .9em; color: var(--ink); }
.policy-list { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; }
.policy-list li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.policy-list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.policy-list li i { margin-right: 6px; color: var(--ok); }
.policy-list li:has(> i)::before { display: none; }
.policy-list li:has(> i) { padding-left: 0; }

.info-box, .warning-box { display: flex; gap: 14px; padding: 16px 18px; margin: 18px 0; border-radius: var(--r-md); font-size: 15px; line-height: 1.6; }
.info-box { background: var(--brand-50); border: 1px solid #cfe1fb; color: var(--ink-2); }
.info-box > i { color: var(--brand); margin-top: 3px; }
.warning-box { background: var(--accent-50); border: 1px solid #ffe3b0; color: #6b4a00; }
.warning-box > i { color: #d98200; margin-top: 3px; }
.note-text { font-size: 14px; color: var(--ink-3); }

.use-case-grid, .rights-grid, .security-features, .third-party-grid, .contact-info-grid, .browser-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
.use-case-card, .right-card, .security-item, .third-party-card, .contact-info-card, .cookie-type-card { padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.use-case-card h4, .right-card h4, .security-item h4, .third-party-card h4, .contact-info-card h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin: 8px 0 4px; }
.use-case-card p, .right-card p, .security-item p, .third-party-card p, .contact-info-card p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--ink-3); }
.use-case-icon, .right-card > i, .security-item > i, .contact-info-card > i, .third-party-logo, .category-icon {
    width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 16px;
}
.third-party-logo i, .category-icon i { font-size: 16px; }
.cookie-category { margin: 18px 0; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.category-header { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.category-header h4, .cookie-type-header h4 { font-size: 17px; font-weight: 700; margin: 0; }
.category-icon.essential { background: var(--ok-50); color: var(--ok); }
.category-icon.functional { background: var(--brand-50); color: var(--brand); }
.category-icon.analytics { background: var(--accent-50); color: #d98200; }
.category-icon.marketing { background: #e0f4f6; color: #0e8fa0; }
.category-desc { color: var(--ink-3); font-size: 15px; margin-bottom: 10px; }
.cookie-example { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.cookie-table { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.cookie-table table { width: 100%; border-collapse: collapse; min-width: 480px; }
.cookie-table th { background: var(--bg-soft); text-align: left; padding: 11px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.cookie-table td { padding: 11px 14px; font-size: 14.5px; border-top: 1px solid var(--line); }
.cookie-type-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.browser-links a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.browser-links a:hover { border-color: var(--brand); color: var(--brand); }

.policy-cta { margin-top: 36px; padding: 36px; text-align: center; border-radius: var(--r-lg); color: #fff; background: radial-gradient(400px 200px at 90% 0%, rgba(253, 158, 14, .35), transparent 60%), var(--ink); }
.policy-cta h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.policy-cta p { color: #c2d0e8; margin-bottom: 20px; }
.policy-cta .btn-hero-primary { background: #fff; color: var(--ink); box-shadow: none; }
.policy-cta .btn i { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-split, .story, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
    .cards.c4, .related { grid-template-columns: repeat(2, 1fr); }
    .cards.c3, .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .policy-layout { grid-template-columns: 1fr; gap: 20px; }
    .policy-sidebar { position: static; max-height: none; }
    .toc-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .container { width: calc(100% - 32px); }
    .section-tight { padding: 52px 0; }
    .page-hero { padding: 36px 0 40px; }
    .page-hero .lead { font-size: 16.5px; }
    .cards.c2, .cards.c3, .cards.c4, .feat-grid, .vm, .related, .use-case-grid, .rights-grid, .security-features, .third-party-grid, .contact-info-grid, .browser-links, .toc-nav { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .hero-actions .btn { width: 100%; }
    .related { grid-template-columns: 1fr 1fr; }
    .section-heading { font-size: 21px; }
}
