/*
Theme Name: Educorium Child
Template: educorium
*/


/* Wide two-column hero, dark contrast panel for download, scroll-reveal + mouse-tilt for interest. Light theme only, by request. */
:root {
    --bg: #F6F4EE;
    --surface: #FFFFFF;
    --ink: #1B1633;
    --muted: #625C78;
    --accent: #5B21C4;
    --accent-2: #7C3AED;
    --accent-soft: #EDE6FC;
    --line: #E6E0D2;
    --gold: #D97706;
    --navbg: rgba(246, 244, 238, .92);
    --font-body: 'Inter', system-ui, sans-serif;
    color-scheme: light;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%
}

a {
    color: inherit
}

section {
    scroll-margin-top: 84px
}

.side {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px))
}

/* ---- scroll progress ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 50;
    transition: width .1s linear
}

header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
    background: var(--navbg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 68px
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0
}

.brand img {
    display: block
}

.brand .icon {
    width: 26px;
    height: 26px
}

.brand .word {
    height: 15px;
    width: auto
}

.nav-cta {
    flex-shrink: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 999px;
    transition: background .2s ease;
}

.nav-cta:hover {
    background: var(--accent-2)
}

.social-row {
    display: flex;
    gap: 10px
}

.social-row a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .15s ease;
}

.social-row a:hover {
    background: var(--accent);
    transform: translateY(-2px)
}

.social-row a:hover svg {
    stroke: #FFFFFF
}

.social-row a svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    transition: stroke .2s ease
}

.social-row a svg .yt-play {
    fill: var(--accent);
    transition: fill .2s ease
}

.social-row a:hover svg .yt-play {
    fill: #FFFFFF
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding-block: 56px 8px
}

.wrap-wide {
    max-width: 1280px;
    margin: 0 auto
}

.eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 16px;
}

h1 {
    font-weight: 800;
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 16px;
    text-wrap: balance;
    max-width: 18ch;
}

.tagline {
    font-style: italic;
    font-weight: 700;
    font-size: 19px;
    color: var(--accent);
    margin: 0 0 16px
}

.lede {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 52ch;
    margin: 0 0 30px
}

h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.008em
}

.section-sub {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 15px;
    max-width: 56ch
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    transition: background .2s ease, transform .15s ease
}

.btn-primary:hover {
    background: var(--accent-2);
    transform: translateY(-1px)
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    transition: border-color .2s ease, transform .15s ease
}

.btn-secondary:hover {
    border-color: var(--accent);
    transform: translateY(-1px)
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

/* ---- scroll-reveal ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1)
}

[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0)
}

[data-reveal="right"] {
    transform: translateX(30px)
}

[data-reveal="right"].in-view {
    transform: translateX(0)
}

/* ---- hero ---- */
.hero {
    padding-block: 40px;
    position: relative
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center
}

@media (min-width:900px) {
    .hero-grid {
        grid-template-columns: 1.15fr .85fr;
        gap: 40px
    }
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .5;
    z-index: 0;
    animation: float 8s ease-in-out infinite
}

.blob-a {
    width: 260px;
    height: 260px;
    background: var(--accent-soft);
    top: -40px;
    left: 5%;
}

.blob-b {
    width: 220px;
    height: 220px;
    background: var(--gold);
    opacity: .18;
    bottom: -20px;
    right: 0;
    animation-delay: -3s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1)
    }

    50% {
        transform: translateY(-16px) scale(1.04)
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none
    }
}

.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 48px auto 0;
    width: fit-content;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.scroll-cue svg {
    animation: bob 1.8s ease-in-out infinite
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(6px)
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue svg {
        animation: none
    }
}

/* ---- phone mockup (Android flagship, black frame, images crossfade) ---- */
.phone-mockup {
    position: relative;
    z-index: 1;
    width: 252px;
    margin: 0 auto;
    padding: 9px;
    border-radius: 22px;
    background: linear-gradient(155deg, #2b2b2e, #0a0a0b);
    border: 1px solid #000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .05) inset, 0 32px 60px -24px rgba(27, 22, 51, .4);
    transition: transform .25s ease;
}

.phone-mockup:hover {
    transform: translateY(-4px)
}

.phone-mockup .cam {
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    z-index: 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #050506;
    border: 1px solid rgba(255, 255, 255, .08);
}

.phone-mockup .side-btn {
    position: absolute;
    right: -2px;
    top: 134px;
    width: 3px;
    height: 48px;
    border-radius: 2px;
    background: #050506;
}

.phone-mockup .screen {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
    background: var(--bg);
    border: 1px solid #000;
}

.phone-mockup .shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .7s ease;
}

.phone-mockup .shot.active {
    opacity: 1
}

.dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    position: relative;
    z-index: 1
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .3s ease, transform .2s ease
}

.dot:hover {
    transform: scale(1.3)
}

.dot.active {
    background: var(--accent);
    transform: scale(1.15)
}

/* ---- download panel (dark contrast band) ---- */
.download-panel {
    background: var(--ink);
    border-radius: 28px;
    padding: 56px 40px;
    color: var(--bg);
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    text-align: center;
}

@media (min-width:760px) {
    .download-panel {
        grid-template-columns: 1.1fr .9fr;
        text-align: left;
        padding: 60px 56px
    }
}

.download-panel h2 {
    color: var(--bg)
}

.download-panel .section-sub {
    color: #B9B0CF;
    margin: 0
}

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center
}

@media (min-width:760px) {
    .stores {
        justify-content: flex-end
    }
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid transparent;
    min-width: 176px;
    transition: transform .15s ease;
}

.store-badge:hover {
    transform: translateY(-2px)
}

.store-badge svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: var(--accent)
}

.store-badge .txt {
    display: flex;
    flex-direction: column;
    line-height: 1.25
}

.store-badge .txt .small {
    font-size: 10px;
    opacity: .7
}

.store-badge .txt .big {
    font-size: 15px;
    font-weight: 700
}

/* ---- pillars ---- */
.pillars-section {
    padding-block: 40px
}

.pillars-head {
    max-width: 640px;
    margin: 0 0 36px
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}

.pillar:hover {
    border-color: var(--accent);
    transform: translateY(-3px)
}

.pillar .num {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-soft);
    line-height: 1;
    z-index: 0
}

.pillar .ico {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar .ico svg {
    stroke: var(--accent);
    width: 22px;
    height: 22px
}

.pillar h3 {
    position: relative;
    z-index: 1;
    font-size: 17px;
    font-weight: 700;
    margin: 0
}

.pillar p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0
}

/* ---- header navigation links ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
    position: relative;
    padding-block: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .2s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* ---- about section ---- */
.about-section {
    padding-block: 40px;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(237, 230, 252, 0.3) 50%, var(--bg) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-head {
    max-width: 740px;
    margin: 0 0 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-lead {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
}

.about-desc {
    font-size: 15px;
    line-height: 1.68;
    color: var(--muted);
    margin: 0;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
}

.about-highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-ico svg {
    width: 20px;
    height: 20px;
}

.about-highlight-item h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.about-highlight-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.about-cards-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 8px 30px rgba(91, 33, 196, 0.04);
    transition: border-color .2s ease, transform .2s ease;
}

.about-feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.about-feature-card .card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.about-feature-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
}

.about-feature-card p {
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
    transition: background .15s ease, border-color .15s ease;
}

.tag-pill:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.about-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-stat-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color .2s ease;
}

.about-stat-box:hover {
    border-color: var(--accent);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

/* ---- contact section ---- */
.contact-section {
    padding-block: 40px;
}

.contact-head {
    max-width: 640px;
    margin: 0 0 44px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(27, 22, 51, 0.05);
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.contact-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--ink);
}

.contact-card p {
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

.contact-email-wrapper {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.email-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 6px;
}

.contact-email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-email-row code {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    font-family: inherit;
    word-break: break-all;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

.copy-btn:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.copy-btn.copied {
    background: #059669;
    color: #FFFFFF;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.response-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
}

.status-badge-row {
    margin-bottom: 20px;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #065F46;
    background: #D1FAE5;
    padding: 6px 14px;
    border-radius: 999px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.contact-social-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.social-channel-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

.social-channel-item:hover {
    border-color: var(--accent);
    background: #FFFFFF;
    transform: translateX(4px);
}

.social-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon-box svg {
    width: 18px;
    height: 18px;
}

.social-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.channel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.channel-handle {
    font-size: 12px;
    color: var(--muted);
}

.external-arrow {
    stroke: var(--muted);
    transition: transform .2s ease, stroke .2s ease;
}

.social-channel-item:hover .external-arrow {
    stroke: var(--accent);
    transform: translate(2px, -2px);
}

/* ---- footer ---- */
footer {
    margin-top: 0;
    padding-block: 40px 48px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.foot-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.foot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.foot-brand .icon {
    width: 24px;
    height: 24px;
}

.foot-brand .word {
    height: 14px;
    width: auto;
}

.foot-top .social-row a {
    width: 36px;
    height: 36px;
}

.foot-top .social-row a svg {
    width: 17px;
    height: 17px;
}

.foot-tagline {
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}

.copyright {
    font-size: 12px;
    color: var(--muted);
    opacity: .75;
    margin: 0;
}

.foot-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.foot-legal-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

.foot-legal-links a:hover {
    color: var(--accent);
}

.foot-legal-links .sep {
    color: var(--line);
}

/* ---- legal & separate pages ---- */
.page-legal-wrap {
    padding-block: 48px 80px;
    min-height: 80vh;
}

.page-legal-header {
    margin-bottom: 36px;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.page-back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.page-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--muted);
}

.page-legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.page-legal-layout.no-toc {
    grid-template-columns: 1fr;
}

.legal-main-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 44px 48px;
    box-shadow: 0 4px 24px rgba(27, 22, 51, 0.04);
    min-width: 0;
}

.legal-toc-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
}

.toc-sticky-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(27, 22, 51, 0.03);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.toc-title {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink);
}

.toc-icon {
    stroke: var(--accent);
    flex-shrink: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(85vh - 140px);
    overflow-y: auto;
}

.toc-link {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all .18s ease;
}

.toc-link:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.toc-link.active {
    color: var(--accent);
    background: var(--accent-soft);
    border-left-color: var(--accent);
    font-weight: 700;
}

/* Entry content & Gutenberg default block editor styles */
.legal-entry-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    max-width: 100%;
}

.legal-entry-content>* {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.legal-entry-content>*:first-child {
    margin-top: 0 !important;
}

.legal-entry-content h2,
.legal-entry-content h2.wp-block-heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.legal-entry-content h3,
.legal-entry-content h3.wp-block-heading {
    font-size: 19px;
    font-weight: 800;
    color: var(--accent);
    margin: 32px 0 12px;
    scroll-margin-top: 96px;
}

.legal-entry-content h4,
.legal-entry-content h4.wp-block-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 24px 0 8px;
}

.legal-entry-content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    opacity: 0.92;
    margin: 0 0 16px;
}

.legal-entry-content ul,
.legal-entry-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-entry-content li {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted);
}

.legal-entry-content li strong {
    color: var(--ink);
}

.legal-entry-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
    font-style: italic;
    color: var(--ink);
}

.legal-entry-content blockquote p {
    margin: 0;
}

.legal-entry-content hr.wp-block-separator {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 36px 0;
}

/* ---- responsive rules ---- */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-legal-layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .legal-toc-sidebar {
        order: -1;
        width: 100%;
        position: static;
        margin-bottom: 0;
    }

    .toc-sticky-box {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .toc-list {
        max-height: 240px;
    }

    .legal-main-content {
        order: 1;
        width: 100%;
        padding: 32px 20px;
    }
}

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

    .download-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {

    .about-section,
    .contact-section {
        padding-block: 56px;
    }

    .about-stats-row {
        grid-template-columns: 1fr;
    }

    .foot-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

a.store-badge {
    text-decoration: none;
}