/* ====================
   v3 Secondary pages: Liner Notes
   Loaded last on Feedback, Legal, Privacy, 404 and Service Waking. Every rule is
   screen-only and scoped to the page's own main element, so print output and
   other pages that share legacy class names keep their current look.
   ==================== */

@media screen {

/* Shared page shell ---------------------------------------------------------- */
html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) {
    --secondary-selected: var(--band);
    color: var(--text-body);
}

html[data-theme="default"] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) {
    --secondary-selected: #5c4b3f;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page) {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 64px auto 0;
    padding: 0 40px;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(h1, h2) {
    color: var(--ink);
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-shadow: none;
}

html[data-theme]:lang(zh) main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(h1, h2) {
    font-weight: 600;
    letter-spacing: 0;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(.hero-eyebrow, .v3-page-eyebrow, .status-page-code) {
    margin: 0 0 16px;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html[data-theme]:lang(zh) main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(.hero-eyebrow, .v3-page-eyebrow, .status-page-code) {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: none;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page) h1 {
    margin: 0;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.02;
    text-align: left;
}

html[data-theme]:lang(zh) main:is(.feedback-page, .legal-page, .privacy-page) h1 {
    line-height: 1.15;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(button, a, input, textarea, summary):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

/* Buttons: ink primary, outlined secondary, shared control radius */
html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(.primary-button, .secondary-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--radius-control);
    box-shadow: none;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    transform: none;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) .primary-button {
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) .secondary-button {
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(.primary-button, .secondary-button)::before,
html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(.primary-button, .secondary-button)::after {
    display: none;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) .primary-button:hover:not(:disabled) {
    color: var(--on-accent);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
    transform: none;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) .secondary-button:hover:not(:disabled) {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: none;
    transform: none;
}

html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page, .status-page) :is(.primary-button, .secondary-button):disabled {
    opacity: 0.45;
    cursor: default;
}

/* Feedback: intro on the left, form on the right ---------------------------- */
html[data-theme] main.feedback-page .hero-tagline {
    max-width: 820px;
    margin: 12px 0 0;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: clamp(19px, 2vw, 22px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: left;
    text-shadow: none;
}

html[data-theme]:lang(zh) main.feedback-page .hero-tagline {
    font-style: normal;
    font-weight: 600;
    line-height: 1.6;
}

html[data-theme] main.feedback-page .feedback-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    align-items: start;
    gap: 56px;
    margin: 32px 0 0;
    padding: 40px 0 0;
    background: transparent;
    border: 0;
    border-top: 3px double var(--ink);
    border-radius: 0;
    box-shadow: none;
}

html[data-theme] main.feedback-page .feedback-panel:hover {
    background: transparent;
    border-color: var(--ink);
    box-shadow: none;
    transform: none;
}

html[data-theme] main.feedback-page .feedback-panel .tool-section-heading {
    margin: 0;
    padding: 0;
    text-align: left;
}

html[data-theme] main.feedback-page .feedback-panel h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
}

html[data-theme] main.feedback-page .feedback-panel .tool-section-heading p {
    max-width: 38ch;
    margin: 14px 0 0;
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.65;
}

html[data-theme] main.feedback-page .feedback-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
}

html[data-theme] main.feedback-page .feedback-field label {
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

html[data-theme]:lang(zh) main.feedback-page .feedback-field label {
    font-size: 13px;
    letter-spacing: 0.1em;
}

html[data-theme] main.feedback-page .feedback-field :is(input, textarea) {
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    box-shadow: none;
    padding: 12px 14px;
    font-size: 16px;
}

html[data-theme] main.feedback-page .feedback-field input {
    height: 48px;
}

html[data-theme] main.feedback-page .feedback-field textarea {
    min-height: 200px;
    line-height: 1.55;
}

html[data-theme] main.feedback-page .feedback-field :is(input, textarea):hover,
html[data-theme] main.feedback-page .feedback-field :is(input, textarea):focus {
    background: var(--paper);
    border-color: var(--ink);
    box-shadow: none;
}

html[data-theme] main.feedback-page .feedback-actions {
    justify-content: flex-end;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

html[data-theme] main.feedback-page .feedback-actions :is(.primary-button, .secondary-button) {
    flex: 0 0 auto;
    width: auto;
    min-width: 148px;
    height: auto;
    min-height: 46px;
}

html[data-theme] main.feedback-page .feedback-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

/* The live region stays in the page so status changes are announced. */
html[data-theme] main.feedback-page .feedback-status:empty {
    margin-top: -24px;
}

html[data-theme] main.feedback-page .feedback-status[data-tone="success"] {
    color: var(--success);
}

html[data-theme] main.feedback-page .feedback-status[data-tone="error"] {
    color: var(--danger);
}

html[data-theme] main.feedback-page .feedback-status:is([data-tone="success"], [data-tone="error"])::before {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

html[data-theme] main.feedback-page .feedback-status[data-tone="success"]::before {
    content: "✓";
}

html[data-theme] main.feedback-page .feedback-status[data-tone="error"]::before {
    content: "!";
}

/* Legal and Privacy: numbered sections beside an "On this page" list -------- */
html[data-theme] main:is(.legal-page, .privacy-page) .legal-page-intro {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.6;
}

html[data-theme] main:is(.legal-page, .privacy-page) .v3-page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 32px;
    padding-top: 10px;
    color: var(--text-muted);
    border-top: 3px double var(--ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

html[data-theme] main:is(.legal-page, .privacy-page) .v3-page-meta :is(.legal-page-metadata, .privacy-page-metadata) {
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

html[data-theme]:lang(zh) main:is(.legal-page, .privacy-page) .v3-page-meta {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: none;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    margin-top: 48px;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents {
    position: sticky;
    top: 96px;
    padding-top: 12px;
    border-top: 1px solid var(--ink);
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html[data-theme]:lang(zh) main:is(.legal-page, .privacy-page) .policy-contents-label {
    font-size: 13px;
    letter-spacing: 0.1em;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents-toggle {
    display: none;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents ol {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
    padding: 10px 8px 10px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: padding-left 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents a:hover {
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--line);
    padding-left: 10px;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents a.is-current {
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--secondary-selected);
    padding-left: 10px;
}

html[data-theme="default"] main:is(.legal-page, .privacy-page) .policy-contents a.is-current {
    box-shadow: inset 3px 0 0 var(--accent);
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents-number {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
}

html[data-theme] main:is(.legal-page, .privacy-page) :is(.legal-policy-panel, .privacy-policy-panel),
html[data-theme] main:is(.legal-page, .privacy-page) :is(.legal-policy-panel, .privacy-policy-panel):hover {
    margin: 0;
    padding: 0;
    color: var(--text-body);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--ink);
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-section {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 96px;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-section-number {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1.25;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-section h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

html[data-theme]:lang(zh) main:is(.legal-page, .privacy-page) .policy-section h2 {
    font-size: 28px;
    line-height: 1.3;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-section p {
    max-width: 68ch;
    margin: 14px 0 0;
    color: var(--text-body);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
}

html[data-theme]:lang(zh) main:is(.legal-page, .privacy-page) .policy-section p {
    max-width: 40em;
    line-height: 1.8;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-section .policy-section-link {
    margin-top: 20px;
}

html[data-theme] main:is(.legal-page, .privacy-page) :is(.secondary-button, .policy-contents-toggle, .policy-back-to-top) svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[data-theme] main:is(.legal-page, .privacy-page) .policy-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--ink);
    border-bottom: 1px solid var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* 404 and Service Waking: a record beside the message ------------------------ */
html[data-theme] main.status-page {
    --record-vinyl: var(--ink);
    --record-groove: rgba(var(--paper-rgb), 0.1);
    --record-label: var(--accent);
    box-sizing: border-box;
    width: min(1120px, calc(100% - 80px));
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: 64px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-content: center stretch;
    align-items: center;
    justify-items: stretch;
    gap: 64px;
}

html[data-theme="default"] main.status-page {
    --record-vinyl: #0b0907;
    --record-groove: rgba(var(--ink-rgb), 0.09);
}

html[data-theme] main.status-page:has(> .status-page-art) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
}

html[data-theme] main.status-page:has(> .status-page-record-spinning) {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 72px;
}

html[data-theme] main.status-page .status-page-copy {
    min-width: 0;
}

html[data-theme] main.status-page h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(40px, 5.5vw, 64px);
    line-height: 1.05;
}

html[data-theme]:lang(zh) main.status-page h1 {
    line-height: 1.2;
}

html[data-theme] main.status-page .status-page-copy > p:not(.status-page-code) {
    max-width: 42ch;
    margin: 20px 0 0;
    color: var(--text-body);
    font-size: 18px;
    line-height: 1.65;
}

html[data-theme] main.status-page .status-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 3px double var(--ink);
}

html[data-theme] main.status-page:has(> .status-page-record-spinning) .status-page-actions {
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
}

html[data-theme] main.status-page .status-page-actions svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[data-theme] main.status-page .status-page-art {
    position: relative;
    height: 400px;
}

html[data-theme] main.status-page .status-page-sleeve {
    position: absolute;
    z-index: 2;
    top: 40px;
    left: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 320px;
    height: 320px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px double var(--ink);
}

html[data-theme] main.status-page .status-page-sleeve-brand {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html[data-theme] main.status-page .status-page-sleeve-code {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 128px;
    line-height: 0.9;
}

html[data-theme] main.status-page .status-page-sleeve-caption {
    padding-top: 10px;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
    font-size: 13px;
}

html[data-theme] main.status-page .status-page-art .status-page-record {
    position: absolute;
    z-index: 1;
    top: 50px;
    left: 150px;
    width: 300px;
    height: 300px;
}

html[data-theme] main.status-page .status-page-record-vinyl {
    fill: var(--record-vinyl);
}

html[data-theme] main.status-page :is(.status-page-record-groove, .status-page-record-shine) {
    fill: none;
    stroke: var(--record-groove);
    stroke-width: 1;
}

html[data-theme] main.status-page .status-page-record-shine {
    stroke-width: 6;
    stroke-linecap: round;
}

html[data-theme] main.status-page .status-page-record-label {
    fill: var(--record-label);
}

html[data-theme] main.status-page .status-page-record-mark {
    fill: var(--record-vinyl);
}

html[data-theme] main.status-page .status-page-record-hole {
    fill: var(--paper);
}

html[data-theme] main.status-page .status-page-record-spinning {
    width: 260px;
    height: 260px;
    animation: secondary-record-spin 3.2s linear infinite;
}

html[data-theme] main.status-page .status-page-status {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 560px;
    margin-top: 28px;
    padding: 14px 18px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px double var(--ink);
}

html[data-theme] main.status-page .status-page-status #wakeMessage {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
}

html[data-theme] main.status-page .status-page-dot {
    flex: none;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: secondary-status-pulse 1.4s ease-in-out infinite;
}

html[data-theme] main.status-page .status-page-status[data-state="ready"] .status-page-dot {
    background: var(--success);
    animation: none;
}

html[data-theme] main.status-page .status-page-status[data-state="unavailable"] .status-page-dot {
    background: var(--danger);
    animation: none;
}

html[data-theme] main.status-page:has(.status-page-status[data-state="ready"]) .status-page-record-spinning,
html[data-theme] main.status-page:has(.status-page-status[data-state="unavailable"]) .status-page-record-spinning {
    animation-play-state: paused;
}

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

@keyframes secondary-status-pulse {
    50% {
        opacity: 0.3;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme] main.status-page :is(.status-page-record-spinning, .status-page-dot) {
        animation: none;
    }
}

/* Tablets: the 404 sleeve moves above the message */
@media (max-width: 960px) {
    html[data-theme] main.status-page:has(> .status-page-art) {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    html[data-theme] main.status-page .status-page-art {
        order: -1;
        width: 460px;
        max-width: 100%;
    }
}

/* Phones ----------------------------------------------------------------------- */
@media (max-width: 760px) {
    html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page) {
        margin-top: 36px;
        padding: 0 16px;
    }

    /* Phones: the tool pages' compact, centred heading. */
    html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page) > :is(.hero-eyebrow, .v3-page-eyebrow, h1, .hero-tagline, .legal-page-intro) {
        text-align: center;
    }

    html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page) > :is(.hero-eyebrow, .v3-page-eyebrow) {
        margin-bottom: 8px;
        font-size: 10.5px;
    }

    html[data-theme] main:is(.feedback-page, .legal-page, .privacy-page) h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    html[data-theme] main.feedback-page .hero-tagline {
        margin: 6px auto 0;
        font-size: 16px;
        text-wrap: balance;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .legal-page-intro {
        max-width: 34ch;
        margin-inline: auto;
        text-wrap: balance;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .v3-page-meta {
        justify-content: center;
        margin-top: 16px;
        text-align: center;
    }

    html[data-theme] main.feedback-page .feedback-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding-top: 24px;
    }

    html[data-theme] main.feedback-page .feedback-panel h2 {
        font-size: 24px;
    }

    html[data-theme] main.feedback-page .feedback-form {
        padding: 20px;
    }

    html[data-theme] main.feedback-page .feedback-actions :is(.primary-button, .secondary-button) {
        flex: 1 1 140px;
        min-width: 0;
        min-height: 48px;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .legal-page-intro {
        font-size: 16px;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-top: 20px;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents {
        position: static;
        padding: 0;
        background: var(--surface);
        border: 1px solid var(--ink);
        border-radius: var(--radius-control);
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents-label {
        display: none;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        color: var(--ink);
        background: transparent;
        border: 0;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents.is-open .policy-contents-toggle svg {
        transform: rotate(180deg);
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents ol {
        display: none;
        margin: 0;
        padding: 0 14px 6px;
        border-top: 1px solid var(--line);
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents.is-open ol {
        display: block;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents a {
        align-items: center;
        min-height: 44px;
        padding: 8px 0;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-contents li:last-child a {
        border-bottom: 0;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-section {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 6px;
        padding: 24px 0;
        scroll-margin-top: 80px;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-section-number {
        font-size: 22px;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-section h2 {
        font-size: 24px;
    }

    html[data-theme] main:is(.legal-page, .privacy-page) .policy-section p {
        font-size: 15px;
    }

    html[data-theme] main.status-page {
        width: calc(100% - 32px);
        min-height: 0;
        padding: 40px 0 56px;
        gap: 32px;
    }

    html[data-theme] main.status-page:has(> .status-page-art),
    html[data-theme] main.status-page:has(> .status-page-record-spinning) {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    html[data-theme] main.status-page .status-page-art {
        order: -1;
        width: 300px;
        max-width: 100%;
        height: 250px;
    }

    html[data-theme] main.status-page .status-page-sleeve {
        top: 20px;
        width: 210px;
        height: 210px;
        padding: 16px;
    }

    html[data-theme] main.status-page .status-page-sleeve-code {
        font-size: 84px;
    }

    html[data-theme] main.status-page .status-page-art .status-page-record {
        top: 25px;
        left: 100px;
        width: 200px;
        height: 200px;
    }

    html[data-theme] main.status-page .status-page-record-spinning {
        width: 160px;
        height: 160px;
    }

    html[data-theme] main.status-page .status-page-copy > p:not(.status-page-code) {
        font-size: 16px;
    }

    html[data-theme] main.status-page .status-page-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    html[data-theme] main.status-page .status-page-actions :is(.primary-button, .secondary-button) {
        min-height: 48px;
    }
}

}
