/* ==========================================================
   Grapinz Certification Verification Portal
   Theme: Blue (#1877F2) · Glassmorphism · Soft Shadows
   ========================================================== */

:root {
    --blue-50:  #eef5ff;
    --blue-100: #dbeaff;
    --blue-200: #b6d3ff;
    --blue-300: #8cb8ff;
    --blue-400: #5c97fa;
    --blue-500: #1877F2;
    --blue-600: #0f63cf;
    --blue-700: #0a4fa8;
    --blue-800: #083d83;
    --blue-900: #062a5c;

    --ink-900: #0b1220;
    --ink-800: #12203a;
    --ink-700: #1c2b48;
    --ink-500: #41506e;
    --ink-400: #5d6b87;
    --ink-300: #8492ad;
    --ink-200: #c4cdde;
    --ink-100: #e6ebf4;

    --success: #1bbf7a;
    --success-bg: #e6fbf0;
    --danger:  #e5383b;
    --danger-bg: #fdecec;

    --bg: #f5f8ff;
    --card: rgba(255,255,255,.72);
    --card-solid: #ffffff;
    --border: rgba(24, 119, 242, 0.12);

    --shadow-sm: 0 2px 8px rgba(15, 99, 207, 0.06);
    --shadow-md: 0 14px 40px rgba(15, 99, 207, 0.10);
    --shadow-lg: 0 30px 70px rgba(10, 79, 168, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink-800);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-700); }

.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 .5rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-600);
    background: var(--blue-50);
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--blue-100);
    margin-bottom: 1rem;
}

/* ============= BACKGROUND SHAPES ============= */
.bg-shapes {
    position: fixed; inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(24,119,242,.18), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(10,79,168,.16), transparent 60%),
        linear-gradient(180deg, #eaf2ff 0%, #f5f8ff 40%, #ffffff 100%);
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: float 18s ease-in-out infinite;
}
.shape-1 { width: 360px; height: 360px; top: -80px; left: -80px; background: #4b91ff; }
.shape-2 { width: 280px; height: 280px; top: 30%; right: -60px; background: #1877F2; animation-delay: -4s; }
.shape-3 { width: 220px; height: 220px; bottom: 5%; left: 20%; background: #7cb4ff; animation-delay: -8s; }
.shape-4 { width: 180px; height: 180px; top: 55%; left: 55%; background: #a6c8ff; animation-delay: -12s; }
.shape-5 { width: 140px; height: 140px; top: 10%; left: 45%; background: #3f7fe0; animation-delay: -2s; opacity: .35; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50%      { transform: translateY(-40px) translateX(20px) scale(1.08); }
}

#particles {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============= HEADER ============= */
.site-header {
    position: sticky; top: 0;
    z-index: 40;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    gap: 1.5rem;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink-900);
}
.brand-logo {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}
.brand-logo svg { width: 28px; height: 28px; }
.brand-text {
    display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text strong {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.02em;
}
.brand-text em {
    font-style: normal;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-400);
    letter-spacing: .02em;
}
.brand.small .brand-logo { width: 36px; height: 36px; }

.site-nav {
    display: flex; gap: 1.25rem;
}
.site-nav a {
    color: var(--ink-500);
    font-weight: 500;
    font-size: .95rem;
    padding: .3rem .2rem;
    position: relative;
}
.site-nav a::after {
    content: "";
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--blue-500);
    transition: width .3s var(--ease);
    border-radius: 2px;
}
.site-nav a:hover { color: var(--blue-600); }
.site-nav a:hover::after { width: 100%; }

@media (max-width: 560px) {
    .site-nav { display: none; }
}

/* ============= HERO ============= */
.hero {
    padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem);
    text-align: center;
    position: relative;
}
.hero-inner { max-width: 880px; margin-inline: auto; }
.subhead {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--blue-700);
    font-weight: 600;
    margin: .25rem 0 1rem;
}
.lead {
    font-size: clamp(.98rem, 1.4vw, 1.075rem);
    color: var(--ink-500);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.verify-form {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .65rem;
    background: rgba(255,255,255,.85);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.verify-form:focus-within {
    box-shadow: 0 30px 80px rgba(10, 79, 168, 0.25), 0 0 0 4px rgba(24, 119, 242, 0.18);
    transform: translateY(-1px);
}

.input-wrap {
    flex: 1 1 300px;
    display: flex; align-items: center;
    padding: 0 .4rem 0 1rem;
    min-height: 52px;
    color: var(--ink-300);
}
.input-wrap input {
    flex: 1;
    border: none; outline: none; background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink-900);
    padding: .75rem .5rem;
    letter-spacing: .02em;
}
.input-wrap input::placeholder {
    color: var(--ink-300);
    letter-spacing: 0;
}
.input-icon { flex-shrink: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .55rem;
    font-family: inherit;
    font-weight: 600;
    font-size: .97rem;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(24, 119, 242, 0.45); color: white; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: white;
    color: var(--blue-700);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--blue-50); color: var(--blue-700); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--ink-500);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }

/* Button spinner */
.btn .btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn.is-loading .btn-label,
.btn.is-loading .btn-arrow { display: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .9; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-meta {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2.25rem;
    margin-top: 2.75rem;
}
.meta-item {
    display: flex; flex-direction: column;
    color: var(--ink-500);
    font-size: .85rem;
}
.meta-item strong {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--ink-900);
    letter-spacing: -0.02em;
}

/* ============= RESULT ============= */
.result-section {
    padding: 0 0 1rem;
    min-height: 0;
}
.result-section:empty { display: none; }

.result-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-lg);
    max-width: 860px;
    margin: 1rem auto 2rem;
    animation: fadeUp .5s var(--ease);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.loading-card { text-align: center; }
.loader {
    width: 48px; height: 48px;
    border: 4px solid var(--blue-100);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin .8s linear infinite;
}

.status-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 700;
    font-size: .82rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    letter-spacing: .02em;
}
.status-badge.valid  { background: var(--success-bg); color: var(--success); }
.status-badge.invalid { background: var(--danger-bg); color: var(--danger); }

.result-head { text-align: center; margin-bottom: 1.5rem; }
.result-head h3 { margin: .65rem 0 .25rem; font-size: 1.4rem; }
.result-head p  { color: var(--ink-500); margin: 0; }

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .85rem 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ink-100);
    margin-bottom: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: .15rem; }
.field-wide { grid-column: 1 / -1; }
.field .label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-400);
}
.field .value {
    font-size: 1rem;
    color: var(--ink-900);
    font-weight: 600;
    word-break: break-word;
}
.value.mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .98rem;
    letter-spacing: .02em;
    color: var(--blue-700);
    background: var(--blue-50);
    padding: .35rem .6rem;
    border-radius: 8px;
    align-self: start;
}

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

.result-actions {
    display: flex; flex-wrap: wrap; gap: .75rem;
    justify-content: center;
}

.error-card { text-align: center; border-color: rgba(229,56,59,.25); }
.error-card h3 { color: var(--danger); margin-top: .75rem; }
.error-card p { color: var(--ink-500); max-width: 520px; margin: .25rem auto 1.25rem; }

/* ============= ABOUT ============= */
.section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
}
.about-copy p { color: var(--ink-500); margin: 0 0 1rem; font-size: 1.02rem; }

.feature-list {
    list-style: none;
    padding: 0; margin: 1.5rem 0 0;
    display: grid; gap: .9rem;
}
.feature-list li {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-list strong { display: block; margin-bottom: .2rem; color: var(--ink-900); }
.feature-list p { margin: 0; font-size: .92rem; color: var(--ink-400); }
.feat-icon {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    box-shadow: 0 6px 14px rgba(24,119,242,.3);
}

.about-visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.glow {
    position: absolute; inset: 10% 10%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(24,119,242,.35), transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .7; }
    50%      { transform: scale(1.08); opacity: 1; }
}
.preview-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform .4s var(--ease);
}
.preview-card:hover { transform: rotate(0) translateY(-4px); }
.preview-top {
    display: flex; align-items: center; gap: .4rem;
    padding: .7rem .85rem;
    background: #fafcff;
    border-bottom: 1px solid var(--ink-100);
}
.preview-top .dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--ink-200);
}
.preview-top .dot:first-child { background: #ff6b6b; }
.preview-top .dot:nth-child(2) { background: #ffc93c; }
.preview-top .dot:nth-child(3) { background: #4bd37b; }
.preview-url {
    margin-left: auto;
    font-size: .78rem;
    color: var(--ink-400);
    font-family: ui-monospace, monospace;
}
.preview-body { padding: 1.1rem 1.2rem 1.3rem; }
.preview-badge {
    display: inline-block;
    background: var(--success-bg);
    color: var(--success);
    font-weight: 700;
    font-size: .78rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.preview-row {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--ink-100);
    font-size: .92rem;
}
.preview-row:last-child { border-bottom: none; }
.preview-row span { color: var(--ink-400); }
.preview-row strong { color: var(--ink-900); font-weight: 600; }
.preview-row.mono strong {
    font-family: ui-monospace, monospace;
    color: var(--blue-700);
    font-size: .86rem;
}

@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual { order: -1; min-height: 260px; }
}

/* ============= FAQ ============= */
.faq-section { text-align: center; }
.faq-section h2 { margin-bottom: 2rem; }
.faq-list {
    max-width: 780px; margin: 0 auto;
    display: grid; gap: .75rem;
    text-align: left;
}
.faq-list details {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq-list details[open] {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
}
.faq-list summary {
    font-weight: 600; color: var(--ink-900);
    cursor: pointer;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--blue-500);
    line-height: 1;
    transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--ink-500); margin: .6rem 0 0; font-size: .95rem; }
.faq-list code {
    background: var(--blue-50);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: .85em;
    color: var(--blue-700);
}

/* ============= CONTACT ============= */
.contact-section { text-align: center; }
.contact-lead {
    max-width: 620px; margin: 0 auto 2.25rem;
    color: var(--ink-500);
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 960px; margin: 0 auto;
    text-align: left;
}
.contact-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--ink-900);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.contact-card:hover:not(.static) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
    color: var(--ink-900);
}
.contact-card.static { cursor: default; }
.c-icon {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
}
.c-icon.wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.contact-card strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--ink-900);
}
.contact-card span {
    font-size: .9rem;
    color: var(--ink-400);
}

/* ============= FOOTER ============= */
.site-footer {
    margin-top: 2rem;
    padding: 3rem 0 1.5rem;
    background: linear-gradient(180deg, rgba(24,119,242,0.03), rgba(24,119,242,0.06));
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 2.5rem;
}
.footer-brand .brand { margin-bottom: .75rem; }
.footer-copy {
    color: var(--ink-400); font-size: .92rem;
    max-width: 380px; margin: 0;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.footer-cols h4 {
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-500);
    font-weight: 700;
    margin-bottom: .75rem;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-cols a {
    color: var(--ink-500);
    font-size: .93rem;
}
.footer-cols a:hover { color: var(--blue-600); }

.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    color: var(--ink-400);
}
.footer-bottom p { margin: 0; }

@media (max-width: 800px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ============= ACCESSIBILITY ============= */
:focus-visible {
    outline: 3px solid rgba(24,119,242,.45);
    outline-offset: 3px;
    border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============= LEGAL PAGES (Privacy / Terms) ============= */
.legal-hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}
.legal-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: .5rem;
}
.legal-meta {
    color: var(--ink-400);
    font-size: .95rem;
    margin: 0;
}

.legal-section {
    padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}
.legal-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
}

.legal-card {
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-md);
    color: var(--ink-500);
    font-size: 1rem;
    line-height: 1.75;
}
.legal-card > p:first-of-type {
    font-size: 1.05rem;
    color: var(--ink-700);
}
.legal-card h2 {
    font-size: 1.2rem;
    color: var(--ink-900);
    margin: 1.75rem 0 .6rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink-100);
}
.legal-card h2:first-of-type {
    border-top: none;
    padding-top: .5rem;
    margin-top: 1.25rem;
}
.legal-card p { margin: .5rem 0; }
.legal-card ul {
    margin: .6rem 0 1rem;
    padding-left: 1.3rem;
}
.legal-card li {
    margin: .25rem 0;
    color: var(--ink-500);
}
.legal-card li::marker { color: var(--blue-500); }
.legal-card a {
    color: var(--blue-600);
    text-decoration: underline;
    text-decoration-color: rgba(24,119,242,.35);
    text-underline-offset: 3px;
}
.legal-card a:hover { color: var(--blue-700); text-decoration-color: var(--blue-500); }
.legal-footnote {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-md);
    color: var(--blue-700);
    font-weight: 500;
    font-size: .95rem;
}

.legal-aside {
    position: sticky;
    top: 96px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.legal-aside h3 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin: 0 0 .9rem;
}
.legal-aside ul {
    list-style: none;
    padding: 0; margin: 0 0 1.25rem;
    display: grid; gap: .5rem;
}
.legal-aside li a {
    display: block;
    color: var(--ink-700);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .75rem;
    border-radius: 10px;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.legal-aside li a:hover {
    background: var(--blue-50);
    color: var(--blue-700);
    transform: translateX(2px);
}
.aside-contact {
    border-top: 1px solid var(--ink-100);
    padding-top: 1rem;
    display: grid; gap: .3rem;
    font-size: .92rem;
}
.aside-contact strong {
    display: block;
    color: var(--ink-900);
    margin-bottom: .2rem;
}
.aside-contact a { color: var(--blue-600); }

@media (max-width: 860px) {
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-aside { position: static; order: 2; }
}

/* Toast for share link */
.toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink-900); color: white;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    font-size: .9rem; font-weight: 500;
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
