@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
@import url("https://fonts.cdnfonts.com/css/clash-display");

:root {
    --color-core-midnight: #0f172a;
    --color-sonic-blue: #2563eb;
    --color-polar-glass: #ecf4ff;
    --color-tech-mint: #38cab5;
    --color-signal-amber: #facc15;
    --color-warm-graphite: #1f2937;
    --color-soft-ash: #9ca3af;
    --color-hero-glow: #1d4ed8;
    --color-hero-shadow: rgba(4, 21, 49, 0.46);
    --font-display: "Clash Display", "Plus Jakarta Sans", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
    --radius-panel: 24px;
    --radius-pill: 999px;
    --gutter: clamp(1.5rem, 5vw, 3.5rem);
    --shadow-panel: 0 28px 60px rgba(4, 21, 49, 0.38);
    --shadow-button: 0 18px 26px rgba(37, 99, 235, 0.25);
    --ease-brand: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    font-family: var(--font-body);
    background: var(--color-core-midnight);
    color: var(--color-polar-glass);
}

body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 55%), var(--color-core-midnight);
    color: var(--color-polar-glass);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(37, 99, 235, 0.55);
    color: var(--color-polar-glass);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms var(--ease-brand);
}

a:hover,
a:focus-visible {
    color: var(--color-tech-mint);
}

img {
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
    padding: var(--gutter) 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.topbar nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

.topbar nav a {
    color: rgba(236, 244, 255, 0.78);
    position: relative;
}

.topbar nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, var(--color-sonic-blue), var(--color-tech-mint));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms var(--ease-brand);
}
.topbar nav a:hover::after,
.topbar nav a:focus-visible::after,
.topbar nav a[aria-current="page"]::after {
    transform: scaleX(1);
}
.topbar nav a:hover::after,
.topbar nav a:focus-visible::after,
.topbar nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(236, 244, 255, 0.28);
    background: rgba(236, 244, 255, 0.08);
    color: rgba(236, 244, 255, 0.82);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 160ms var(--ease-brand), box-shadow 160ms var(--ease-brand), border-color 160ms var(--ease-brand);
}

.language-toggle:hover,
.language-toggle:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(56, 202, 181, 0.6);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.25);
}

.brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-polar-glass);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 6rem);
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.72)), radial-gradient(circle at 85% 15%, rgba(56, 202, 181, 0.22), transparent 58%);
    backdrop-filter: blur(22px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% 40% 45% -20%;
    background: radial-gradient(circle at left top, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0));
    opacity: 0.7;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 20% -10% -30% 55%;
    background: radial-gradient(circle at center, rgba(250, 204, 21, 0.18), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 6vw, 3.5rem);
    align-items: stretch;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.hero-copy p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
    color: rgba(236, 244, 255, 0.82);
    max-width: 36ch;
}

.hero-highlights {
    margin: 1.75rem 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.hero-highlights li {
    padding-left: 1.6rem;
    font-size: 0.96rem;
    color: rgba(236, 244, 255, 0.86);
    position: relative;
}

.hero-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-sonic-blue), var(--color-tech-mint));
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.55);
}

.hero-actions {
    margin-top: clamp(1.6rem, 4vw, 2.4rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
}

.button-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-sonic-blue), #1e40af);
    color: var(--color-polar-glass);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 24px 40px rgba(37, 99, 235, 0.35);
    transition: transform 160ms var(--ease-brand), box-shadow 160ms var(--ease-brand);
}

.button-solid:hover,
.button-solid:focus-visible {
    transform: translateY(-2px) rotate(-0.6deg);
    box-shadow: 0 28px 46px rgba(37, 99, 235, 0.4);
}

.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 14px;
    border: 1px solid rgba(236, 244, 255, 0.38);
    background: transparent;
    color: rgba(236, 244, 255, 0.92);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 160ms var(--ease-brand), border-color 160ms var(--ease-brand), background 160ms var(--ease-brand);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    transform: translateY(-2px) rotate(-0.6deg);
    border-color: rgba(56, 202, 181, 0.6);
    background: rgba(236, 244, 255, 0.08);
}

.hero-bmc {
    box-shadow: 0 28px 44px rgba(250, 204, 21, 0.42);
}

.hero-bmc:hover,
.hero-bmc:focus-visible {
    box-shadow: 0 32px 52px rgba(250, 204, 21, 0.5);
}

.hero-panel {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius-panel);
    overflow: hidden;
    border: 1px solid rgba(236, 244, 255, 0.16);
    background: rgba(236, 244, 255, 0.07);
    backdrop-filter: blur(28px);
    box-shadow: var(--shadow-panel);
}

.hero-home .hero-panel {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.home-panel-card {
    position: relative;
    z-index: 1;
    padding: clamp(1.8rem, 4vw, 2.4rem);
    border-radius: calc(var(--radius-panel) - 12px);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(236, 244, 255, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.45);
    display: grid;
    gap: 0.8rem;
    max-width: 320px;
}

.home-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(56, 202, 181, 0.22);
    color: rgba(236, 244, 255, 0.92);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-panel-card h2 {
    margin: 0;
    font-size: 1.4rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.home-panel-card p {
    margin: 0;
    color: rgba(236, 244, 255, 0.82);
    line-height: 1.6;
}

.home-panel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
    color: rgba(236, 244, 255, 0.78);
    font-size: 0.9rem;
}

.home-panel-list li::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.55rem;
    background: linear-gradient(135deg, var(--color-sonic-blue), var(--color-tech-mint));
}

.home-panel-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 18% 15% 28% -20%;
    background: radial-gradient(circle at top, rgba(56, 202, 181, 0.45), rgba(15, 23, 42, 0));
    pointer-events: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 45% -15% -10% 25%;
    background: conic-gradient(from 140deg, rgba(37, 99, 235, 0.55), rgba(250, 204, 21, 0.25), rgba(37, 99, 235, 0.55));
    filter: blur(40px);
    pointer-events: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    margin: 0;
    letter-spacing: -0.01em;
}

.pdf-suite-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
    margin: clamp(2rem, 6vw, 3.5rem) 0;
}

.pdf-suite-cards {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pdf-suite-card {
    position: relative;
    padding: clamp(1.8rem, 4vw, 2.4rem);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(236, 244, 255, 0.14);
    box-shadow: 0 22px 40px rgba(4, 21, 49, 0.32);
    display: grid;
    gap: 1.1rem;
}

.pdf-suite-icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(56, 202, 181, 0.72));
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.35);
    font-size: 1.45rem;
}

.pdf-suite-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.pdf-suite-body {
    margin: 0;
    line-height: 1.7;
    color: rgba(236, 244, 255, 0.82);
}

.pdf-suite-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
    color: rgba(236, 244, 255, 0.8);
    font-size: 0.95rem;
}

.pdf-suite-features li {
    position: relative;
    padding-left: 1.4rem;
}

.pdf-suite-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sonic-blue), var(--color-tech-mint));
}

.pdf-suite-cta {
    justify-self: start;
}

.pdf-suite-card .pdf-suite-cta.button-ghost {
    border-color: rgba(236, 244, 255, 0.28);
}

.pdf-suite-card .pdf-suite-cta.button-ghost:hover,
.pdf-suite-card .pdf-suite-cta.button-ghost:focus-visible {
    border-color: rgba(56, 202, 181, 0.6);
}
.hero.hero-small {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(2rem, 5vw, 2.8rem);
}


.panel-gradient,
.panel-circle {
    position: absolute;
}

.panel-gradient {
    inset: -18% -40% 30% 18%;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.42), transparent 70%);
}

.panel-circle {
    width: clamp(150px, 22vw, 220px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid rgba(250, 204, 21, 0.45);
    right: 12%;
    top: 18%;
    filter: blur(0.4px);
}

.panel-scribble {
    position: absolute;
    inset: auto 12% 12% 12%;
    height: 72px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='80' viewBox='0 0 320 80'%3E%3Cpath d='M12 52c32-26 62-12 102-26s56-46 104-18 74 28 90 12' fill='none' stroke='%23facc15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' opacity='0.4'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.65;
}

.panel-gradient,
.panel-circle,
.panel-scribble {
    pointer-events: none;
}

.hero-home-content .hero-copy {
    max-width: 480px;
}

.hero-home-content .hero-copy p {
    max-width: 40ch;
}

.home-main {
    display: grid;
    gap: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.section-header {
    display: grid;
    gap: 0.8rem;
    max-width: 54ch;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-family: var(--font-display);
}

.section-header p {
    margin: 0;
    color: rgba(236, 244, 255, 0.78);
    line-height: 1.7;
}

.home-tools {
    display: grid;
    gap: clamp(2.2rem, 5vw, 3rem);
}

.tools-grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tool-card {
    position: relative;
    padding: clamp(1.8rem, 4vw, 2.4rem);
    border-radius: 22px;
    border: 1px solid rgba(236, 244, 255, 0.1);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 28px 52px rgba(4, 21, 49, 0.48);
    display: grid;
    gap: 1rem;
}

.tool-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(56, 202, 181, 0.16);
    color: rgba(236, 244, 255, 0.82);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tool-card h3 {
    margin: 0;
    font-size: 1.4rem;
    font-family: var(--font-display);
}

.tool-card p {
    margin: 0;
    color: rgba(236, 244, 255, 0.78);
    line-height: 1.6;
}

.tool-card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
    color: rgba(236, 244, 255, 0.78);
    font-size: 0.92rem;
}

.tool-card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-card-list li::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sonic-blue), var(--color-tech-mint));
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(236, 244, 255, 0.92);
}

.tool-card-link::after {
    content: "↗";
    font-size: 0.95rem;
    transition: transform 160ms var(--ease-brand);
}

.tool-card-link:hover::after,
.tool-card-link:focus-visible::after {
    transform: translateX(4px);
}

.roadmap {
    border-radius: calc(var(--radius-panel) - 6px);
    border: 1px solid rgba(236, 244, 255, 0.12);
    background: rgba(236, 244, 255, 0.06);
    padding: clamp(2.2rem, 5vw, 3rem);
    box-shadow: 0 24px 46px rgba(4, 21, 49, 0.45);
}

.roadmap-content {
    display: grid;
    gap: 1rem;
}

.roadmap-content h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-family: var(--font-display);
}

.roadmap-content p {
    margin: 0;
    color: rgba(236, 244, 255, 0.8);
    line-height: 1.7;
}

.roadmap-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.6rem;
    color: rgba(236, 244, 255, 0.86);
}

.upload-card {
    margin-top: clamp(-4.5rem, -8vw, -3rem);
    padding: clamp(2rem, 5vw, 2.75rem);
    border-radius: var(--radius-panel);
    background: linear-gradient(135deg, rgba(236, 244, 255, 0.96), rgba(236, 244, 255, 0.82));
    border: 1px solid rgba(236, 244, 255, 0.4);
    box-shadow: 0 34px 64px rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(18px);
    color: var(--color-warm-graphite);
}

.upload-card form {
    display: grid;
    gap: 1.25rem;
}

.qr-card {
    margin-top: clamp(-4.5rem, -8vw, -3rem);
    padding: clamp(2rem, 5vw, 2.75rem);
    border-radius: var(--radius-panel);
    background: linear-gradient(135deg, rgba(236, 244, 255, 0.96), rgba(236, 244, 255, 0.82));
    border: 1px solid rgba(236, 244, 255, 0.4);
    box-shadow: 0 34px 64px rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(18px);
    color: var(--color-warm-graphite);
    display: grid;
    gap: 1.75rem;
}

.qr-card-header h2 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-family: var(--font-display);
}

.qr-card-header p {
    margin: 0.4rem 0 0 0;
    color: var(--color-soft-ash);
    max-width: 48ch;
}

.qr-form {
    display: grid;
    gap: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--color-warm-graphite);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

input[type="file"] {
    width: 100%;
    padding: 1.05rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(236, 244, 255, 0.72);
    font-family: var(--font-body);
    color: var(--color-warm-graphite);
}

.form-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--color-warm-graphite);
}

.form-field span {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(31, 41, 55, 0.72);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(236, 244, 255, 0.72);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: inherit;
    transition: border-color 160ms var(--ease-brand), box-shadow 160ms var(--ease-brand);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
input[type="file"]:focus-visible {
    outline: 2px solid var(--color-sonic-blue);
    outline-offset: 2px;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

input[type="file"]:focus-visible {
    outline: 2px solid var(--color-sonic-blue);
    outline-offset: 2px;
}

.hint {
    margin: -0.4rem 0 0 0;
    font-size: 0.9rem;
    color: var(--color-soft-ash);
}

button:not(.button-ghost):not(.pdf-modal-close),
.consent-actions button {
    border: none;
    border-radius: 14px;
    padding: 1rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform 160ms var(--ease-brand), box-shadow 160ms var(--ease-brand), background 160ms var(--ease-brand);
    background: linear-gradient(135deg, var(--color-sonic-blue), #1d4ed8);
    color: #fff;
    box-shadow: var(--shadow-button);
}

button:not(.button-ghost):not(.pdf-modal-close):hover,
button:not(.button-ghost):not(.pdf-modal-close):focus-visible,
.consent-actions button:hover,
.consent-actions button:focus-visible {
    transform: translateY(-2px) rotate(-0.8deg);
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.35);
}

button.secondary,
.consent-actions .secondary {
    background: rgba(236, 244, 255, 0.88);
    color: var(--color-warm-graphite);
    box-shadow: none;
}

.qr-result {
    margin-top: clamp(2.5rem, 6vw, 3.5rem);
    padding: clamp(2rem, 5vw, 2.75rem);
    border-radius: var(--radius-panel);
    background: rgba(236, 244, 255, 0.08);
    border: 1px solid rgba(236, 244, 255, 0.18);
    box-shadow: 0 28px 52px rgba(4, 21, 49, 0.32);
    color: rgba(236, 244, 255, 0.86);
}

.qr-result h2 {
    margin-top: 0;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-family: var(--font-display);
}

.qr-result-grid {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.qr-image {
    margin: 0;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(236, 244, 255, 0.18);
    text-align: center;
    display: grid;
    gap: 0.8rem;
}

.qr-image img {
    width: min(220px, 100%);
    margin: 0 auto;
}

.qr-image figcaption {
    font-size: 0.9rem;
    color: rgba(236, 244, 255, 0.72);
}

.qr-actions {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.qr-actions .button-solid {
    justify-self: flex-start;
}

.copy-group {
    display: grid;
    gap: 0.6rem;
}

.copy-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(236, 244, 255, 0.22);
    background: rgba(12, 20, 36, 0.65);
    color: rgba(236, 244, 255, 0.86);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.copy-input:focus-visible {
    outline: 2px solid rgba(56, 202, 181, 0.55);
    outline-offset: 2px;
}

.copy-button {
    justify-self: flex-start;
}

.vcard-preview {
    width: 100%;
    min-height: 160px;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(236, 244, 255, 0.22);
    background: rgba(12, 20, 36, 0.65);
    color: rgba(236, 244, 255, 0.86);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    resize: vertical;
}

button.secondary:hover,
button.secondary:focus-visible,
.consent-actions .secondary:hover,
.consent-actions .secondary:focus-visible {
    background: rgba(236, 244, 255, 0.95);
    box-shadow: 0 12px 20px rgba(4, 21, 49, 0.15);
}

.alert {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #8d6c00;
}

.pdf-card {
    margin-top: clamp(2.4rem, 6vw, 3.6rem);
    padding: clamp(1.8rem, 4vw, 2.6rem);
    border-radius: var(--radius-panel);
    background: rgba(236, 244, 255, 0.06);
    border: 1px solid rgba(236, 244, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 44px rgba(4, 21, 49, 0.32);
}

body.modal-open {
    overflow: hidden;
}

.pdf-onboarding {
    display: grid;
    gap: 1.8rem;
}

.pdf-step-overview {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.pdf-step-overview li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: rgba(12, 20, 36, 0.5);
    border: 1px solid rgba(236, 244, 255, 0.12);
}

.pdf-step-overview-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--color-sonic-blue), var(--color-tech-mint));
    color: var(--color-polar-glass);
    font-weight: 700;
    font-size: 1rem;
}

.pdf-step-overview strong {
    display: block;
    font-size: 1rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
    color: rgba(236, 244, 255, 0.95);
}

.pdf-step-overview p {
    margin: 0;
    color: rgba(236, 244, 255, 0.75);
    line-height: 1.5;
}

.pdf-onboarding-actions {
    display: grid;
    gap: 0.6rem;
    justify-items: start;
}

.pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 6vw, 3rem);
}

.pdf-modal[hidden] {
    display: none;
}

.pdf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.pdf-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 94vw);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    border-radius: var(--radius-panel);
    box-shadow: 0 28px 60px rgba(4, 21, 49, 0.45);
}

.pdf-modal-card {
    padding: clamp(1.8rem, 4vw, 2.4rem);
}

.pdf-modal-header {
    padding-right: 2.6rem;
}

.pdf-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: none;
    background: rgba(236, 244, 255, 0.12);
    color: rgba(236, 244, 255, 0.85);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms var(--ease-brand), background 160ms var(--ease-brand);
}

.pdf-modal-close:hover,
.pdf-modal-close:focus-visible {
    transform: translateY(-2px);
    background: rgba(56, 202, 181, 0.35);
}

.pdf-step-list {
    list-style: none;
    margin: 2rem 0 0 0;
    padding: 0;
    display: grid;
    gap: 1.6rem;
}

.pdf-step {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    background: rgba(12, 20, 36, 0.5);
    border: 1px solid rgba(236, 244, 255, 0.12);
}

.pdf-step-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.pdf-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 1.1rem;
    background: rgba(37, 99, 235, 0.9);
    color: var(--color-polar-glass);
    font-weight: 700;
    font-size: 1.05rem;
}

.pdf-step-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.pdf-step-header p {
    margin: 0.3rem 0 0 0;
    color: rgba(236, 244, 255, 0.75);
    line-height: 1.5;
}

.pdf-step-actions {
    margin-top: 2rem;
    padding: 1.4rem 1.6rem;
    border-radius: 18px;
    background: rgba(12, 20, 36, 0.55);
    border: 1px solid rgba(236, 244, 255, 0.12);
    display: grid;
    gap: 1rem;
}

.pdf-step-summary h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.pdf-step-summary p {
    margin: 0.4rem 0 0 0;
    color: rgba(236, 244, 255, 0.78);
}

.pdf-step-actions .pdf-form-actions {
    margin: 0;
}

.pdf-base-name,
.pdf-split-field {
    color: rgba(236, 244, 255, 0.88);
}

.pdf-base-name span,
.pdf-split-field span {
    color: rgba(236, 244, 255, 0.72);
}

.pdf-base-name input,
.pdf-split-field input {
    background: rgba(236, 244, 255, 0.9);
    color: var(--color-warm-graphite);
}

.pdf-result-adjust {
    border-color: rgba(236, 244, 255, 0.24);
}

.pdf-result-adjust:hover,
.pdf-result-adjust:focus-visible {
    border-color: rgba(56, 202, 181, 0.55);
}

@media (max-width: 640px) {
    .pdf-step-overview li {
        grid-template-columns: 1fr;
    }

    .pdf-step-header {
        grid-template-columns: 1fr;
    }

    .pdf-step-number {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 1rem;
    }
}

.pdf-card-header {
    margin-bottom: 1.6rem;
    display: grid;
    gap: 0.6rem;
}

.pdf-card-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.pdf-card-header p {
    margin: 0;
    color: rgba(236, 244, 255, 0.78);
}

.pdf-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: clamp(1.4rem, 4vw, 2rem);
    border: 1.5px dashed rgba(236, 244, 255, 0.32);
    border-radius: var(--radius-panel);
    background: rgba(12, 20, 36, 0.45);
    cursor: pointer;
    transition: border-color 160ms var(--ease-brand), transform 160ms var(--ease-brand), box-shadow 160ms var(--ease-brand);
}

.pdf-dropzone:hover,
.pdf-dropzone:focus-within,
.pdf-dropzone:focus-visible,
.pdf-dropzone.is-dragover {
    border-color: rgba(56, 202, 181, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.28);
}

.pdf-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.pdf-dropzone-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

.pdf-dropzone-icon {
    font-size: 1.8rem;
}

.pdf-dropzone-copy {
    display: grid;
    gap: 0.15rem;
}

.pdf-dropzone-title {
    font-weight: 600;
}

.pdf-dropzone-hint {
    color: rgba(236, 244, 255, 0.72);
    font-size: 0.9rem;
}

.pdf-dropzone-action {
    margin-left: auto;
    font-weight: 600;
    color: rgba(56, 202, 181, 0.9);
}

.pdf-file-list {
    margin-top: 1.6rem;
    display: grid;
    gap: 0.9rem;
}

.pdf-file-empty {
    margin: 1rem 0 0 0;
    color: rgba(236, 244, 255, 0.7);
}

.pdf-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(236, 244, 255, 0.18);
}

.pdf-file-meta {
    display: grid;
    gap: 0.2rem;
}

.pdf-file-name {
    font-weight: 600;
}

.pdf-file-size {
    font-size: 0.85rem;
    color: rgba(236, 244, 255, 0.7);
}

.pdf-file-actions {
    display: flex;
    gap: 0.4rem;
}

.pdf-file-action {
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    min-width: 2.4rem;
}

.pdf-form-grid {
    margin-top: 1.8rem;
}

.pdf-form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.pdf-profile-field {
    margin-top: 1.8rem;
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    background: rgba(12, 20, 36, 0.52);
    border: 1px solid rgba(236, 244, 255, 0.14);
}

.pdf-profile-field legend {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0 0.2rem;
}

.pdf-profile-options {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.pdf-profile-option {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.8rem;
    row-gap: 0.2rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(236, 244, 255, 0.1);
    transition: border-color 160ms var(--ease-brand), background 160ms var(--ease-brand);
    color: rgba(236, 244, 255, 0.9);
}

.pdf-profile-option:hover,
.pdf-profile-option:focus-within {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(56, 202, 181, 0.42);
}

.pdf-profile-option input[type="radio"] {
    align-self: flex-start;
}

.pdf-profile-option .pdf-profile-label,
.pdf-profile-option .hint {
    grid-column: 2;
}

.pdf-profile-option .pdf-profile-label {
    margin-bottom: 0.1rem;
}

.pdf-profile-label {
    font-weight: 600;
}

.pdf-profile-option .hint {
    color: rgba(236, 244, 255, 0.7);
}

.pdf-summary {
    margin-top: clamp(2.8rem, 6vw, 4rem);
    display: grid;
    gap: 1.6rem;
}

.pdf-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.pdf-summary-table {
    display: grid;
    gap: 0.6rem;
}

.pdf-summary-row {
    display: grid;
    grid-template-columns: 2.2fr 0.9fr 0.9fr 0.9fr;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(12, 20, 36, 0.62);
    border: 1px solid rgba(236, 244, 255, 0.12);
}

.pdf-summary-head {
    font-weight: 600;
    background: rgba(37, 99, 235, 0.28);
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.pdf-result {
    margin-top: clamp(3rem, 6vw, 4.4rem);
    display: grid;
    gap: 1.4rem;
}

.pdf-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pdf-preview {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(236, 244, 255, 0.16);
    padding: 1rem;
}

.pdf-preview-frame {
    width: 100%;
    min-height: 360px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
}

.pdf-result-actions {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.pdf-meta-list {
    display: grid;
    gap: 0.3rem;
    font-size: 0.92rem;
    color: rgba(236, 244, 255, 0.75);
}

.pdf-split-results {
    margin-top: clamp(3rem, 6vw, 4.4rem);
    display: grid;
    gap: 1.6rem;
}

.pdf-split-header h2 {
    margin: 0 0 0.4rem 0;
    font-family: var(--font-display);
}

.pdf-split-header p {
    margin: 0;
    color: rgba(236, 244, 255, 0.72);
}

.pdf-split-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.pdf-split-card {
    padding: 1.2rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(236, 244, 255, 0.16);
    display: grid;
    gap: 0.6rem;
}

.pdf-split-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pdf-split-card p {
    margin: 0;
    color: rgba(236, 244, 255, 0.72);
    font-size: 0.92rem;
}

.pdf-split-card .button-ghost {
    justify-self: flex-start;
}

.pdf-compress-results {
    margin-top: clamp(3rem, 6vw, 4.4rem);
    display: grid;
    gap: 1.6rem;
}

.pdf-compress-header h2 {
    margin: 0 0 0.4rem 0;
    font-family: var(--font-display);
}

.pdf-compress-header p {
    margin: 0;
    color: rgba(236, 244, 255, 0.72);
}

.pdf-compress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.pdf-compress-card {
    padding: 1.3rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(236, 244, 255, 0.16);
    display: grid;
    gap: 0.9rem;
}

.pdf-compress-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.pdf-compress-card dl {
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.pdf-compress-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.pdf-compress-card dt {
    font-weight: 600;
    color: rgba(236, 244, 255, 0.82);
}

.pdf-compress-card dd {
    margin: 0;
    color: rgba(236, 244, 255, 0.72);
}

.pdf-compress-card .button-ghost {
    justify-self: flex-start;
}

@media (max-width: 720px) {
    .pdf-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ads {
    margin-top: clamp(2.5rem, 6vw, 3.5rem);
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-panel);
    background: rgba(236, 244, 255, 0.06);
    border: 1px solid rgba(236, 244, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 44px rgba(4, 21, 49, 0.32);
}

.ads-info {
    margin: 0 0 1rem 0;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.32);
    color: rgba(236, 244, 255, 0.85);
    font-size: 0.95rem;
}

.ads[data-consent="granted"] .adsbygoogle {
    display: block !important;
}

.info {
    margin-top: clamp(3rem, 8vw, 5rem);
    padding: clamp(2.4rem, 6vw, 3.4rem);
    border-radius: var(--radius-panel);
    background: rgba(236, 244, 255, 0.08);
    border: 1px solid rgba(236, 244, 255, 0.12);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(26px);
}

.info h2,
.support h2,
.faq h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.info p,
.info li {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(236, 244, 255, 0.8);
}

.steps {
    margin: 1.75rem 0 2.5rem 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    counter-reset: steps;
}

.steps li {
    list-style: none;
    position: relative;
    padding-left: 2.4rem;
    color: rgba(236, 244, 255, 0.88);
}

.steps li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-sonic-blue), var(--color-tech-mint));
    display: grid;
    place-items: center;
    font-weight: 600;
}

.quick-grid {
    display: grid;
    gap: clamp(1.2rem, 3vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.glass-card {
    border-radius: 20px;
    padding: clamp(1.6rem, 4vw, 2rem);
    border: 1px solid rgba(236, 244, 255, 0.16);
    background: rgba(236, 244, 255, 0.1);
    backdrop-filter: blur(22px);
    box-shadow: 0 22px 44px rgba(4, 21, 49, 0.34);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: 72% -20% -30% 40%;
    background: radial-gradient(circle at center, rgba(250, 204, 21, 0.26), transparent 70%);
    opacity: 0.6;
}

.glass-card h3 {
    margin: 0 0 0.6rem 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.glass-card p {
    margin: 0;
    color: rgba(236, 244, 255, 0.85);
}

.faq {
    margin-top: clamp(3rem, 7vw, 4.2rem);
}

.faq details {
    border-radius: 16px;
    border: 1px solid rgba(236, 244, 255, 0.16);
    padding: 1.1rem 1.4rem;
    margin-top: 1.1rem;
    background: rgba(236, 244, 255, 0.07);
    backdrop-filter: blur(18px);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: rgba(236, 244, 255, 0.92);
    letter-spacing: 0.01em;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq p {
    margin: 0.85rem 0 0 0;
    color: rgba(236, 244, 255, 0.78);
}

.support {
    margin: clamp(3rem, 8vw, 4.6rem) 0 clamp(1.5rem, 5vw, 3rem) 0;
    text-align: center;
    padding: clamp(2.4rem, 6vw, 3.2rem);
    border-radius: var(--radius-panel);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(56, 202, 181, 0.22));
    border: 1px solid rgba(236, 244, 255, 0.12);
    box-shadow: var(--shadow-panel);
}

.support p {
    margin: 0 0 1.6rem 0;
    color: rgba(236, 244, 255, 0.78);
}

.bmc-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.8rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-signal-amber), #f6b60a);
    color: #1b1b1b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 24px 36px rgba(250, 204, 21, 0.35);
    transition: transform 160ms var(--ease-brand), box-shadow 160ms var(--ease-brand);
}

.bmc-button:hover,
.bmc-button:focus-visible {
    transform: translateY(-3px) rotate(0.8deg);
    box-shadow: 0 28px 44px rgba(250, 204, 21, 0.46);
}

.bmc-icon {
    font-size: 1.2rem;
}

.footer {
    background: rgba(10, 14, 26, 0.98);
    padding: 2.5rem 0;
    color: rgba(156, 163, 175, 0.9);
    border-top: 1px solid rgba(236, 244, 255, 0.06);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 0;
}

.footer a {
    color: rgba(236, 244, 255, 0.78);
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--color-tech-mint);
}

.consent-banner {
    position: fixed;
    inset: auto 2rem 2rem 2rem;
    max-width: 460px;
    background: rgba(236, 244, 255, 0.96);
    border: 1px solid rgba(236, 244, 255, 0.5);
    border-radius: 20px;
    padding: 1.9rem;
    box-shadow: 0 38px 72px rgba(4, 21, 49, 0.4);
    backdrop-filter: blur(18px);
    color: var(--color-warm-graphite);
    z-index: 1000;
}

.consent-content {
    display: grid;
    gap: 1.1rem;
}

.consent-content h2 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    color: var(--color-warm-graphite);
}

.consent-content p {
    margin: 0;
    color: rgba(31, 41, 55, 0.78);
    line-height: 1.6;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.consent-reset {
    position: fixed;
    right: 1.8rem;
    bottom: 1.8rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-sonic-blue), #1d4ed8);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-button);
    cursor: pointer;
}

.consent-reset:hover,
.consent-reset:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.35);
}

body.legal {
    background: #f7f9fc;
    color: var(--color-warm-graphite);
}

body.legal .hero {
    background: linear-gradient(140deg, rgba(37, 99, 235, 0.92), rgba(56, 202, 181, 0.42));
}

body.legal .brand,
body.legal .topbar a {
    color: rgba(236, 244, 255, 0.92);
}

body.legal .container,
body.legal p,
body.legal a {
    color: var(--color-warm-graphite);
}

.legal-content {
    margin-top: clamp(-2.6rem, -5vw, -1.8rem);
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
    background: #fff;
    border-radius: var(--radius-panel);
    padding: clamp(2rem, 5vw, 2.75rem);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 2rem;
}

.legal-content h2 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem 0;
}

.legal-content a {
    color: var(--color-sonic-blue);
}

.legal-content a:hover,
.legal-content a:focus-visible {
    color: #1d4ed8;
}

code {
    font-family: var(--font-mono);
    background: rgba(15, 23, 42, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
}

@media (max-width: 960px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 5.5rem;
    }

    .topbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .language-toggle {
        align-self: flex-start;
    }

    .hero-copy p {
        max-width: none;
    }

    .upload-card {
        margin-top: clamp(-5rem, -12vw, -3.5rem);
    }

    .consent-banner {
        inset: auto 1rem 1rem 1rem;
    }

    .consent-reset {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}