/* Shared chrome + accordion for Privacy, Terms, Updates, and Learn header */

html:has(body.info-page) {
    background-color: #111827;
    font-size: 10px;
    min-height: 100vh;
}

.info-page {
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    padding: max(1.25rem, env(safe-area-inset-top, 0px)) 1rem calc(var(--bottom-nav-height, 5.5rem) + env(safe-area-inset-bottom, 0px) + 1.5rem);
    background-color: #111827;
    color: #D1D5DB;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-page *,
.info-page *::before,
.info-page *::after {
    box-sizing: border-box;
}

.info-page-shell {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 2vw, 1rem);
}

.info-page-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.75rem, 2.5vw, 1.1rem);
    width: 100%;
    margin: 0 0 clamp(0.35rem, 1.5vw, 0.65rem);
    padding: 0.15rem 0.15rem 0.85rem;
    border-bottom: 1px solid rgba(222, 184, 135, 0.28);
}

.info-page-logo {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 0.65rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.info-page-logo img {
    width: clamp(2.8rem, 8vw, 3.4rem);
    height: clamp(2.8rem, 8vw, 3.4rem);
    display: block;
    filter: brightness(0) invert(1);
}

.info-page-logo--news img {
    filter: none;
    object-fit: contain;
}

.info-page-logo:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.info-page-logo:focus-visible {
    outline: 2px solid #DEB887;
    outline-offset: 3px;
}

.info-page-title {
    margin: 0;
    color: #F9FAFB;
    font-size: clamp(1.85rem, 5.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-align: left;
}

.info-page-intro {
    margin: 0;
    padding: 0 0.15rem;
    color: #D1D5DB;
    font-size: clamp(1.25rem, 2.8vw, 1.55rem);
    line-height: 1.55;
}

.info-page-meta {
    margin: 0;
    padding: 0.75rem 1rem;
    color: #9CA3AF;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-style: italic;
    text-align: center;
    background: rgba(75, 85, 99, 0.28);
    border-radius: 0.5rem;
}

.info-page-meta--contact {
    padding: 0.15rem 0.15rem 0.35rem;
    color: #F9FAFB;
    font-size: clamp(1.45rem, 3.6vw, 1.85rem);
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    background: none;
    border-radius: 0;
}

.info-page-meta--contact a {
    color: #DEB887;
    font-weight: 600;
    text-decoration: underline;
}

.info-page-meta--contact a:hover {
    color: #ffffff;
}

.info-page-meta strong {
    color: #DEB887;
    font-style: normal;
    font-weight: 700;
}

.info-page-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 2vw, 1rem);
    width: 100%;
}

.info-section {
    position: relative;
    border-radius: clamp(0.1rem, 2vw, 1rem);
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3.5vw, 1.75rem);
    cursor: pointer;
    overflow: hidden;
    background: #374151;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-section--soft-launch {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(74, 222, 128, 0.28) 100%);
    border-color: rgba(74, 222, 128, 0.35);
}

.info-section--soft-launch .info-section-heading b {
    color: #86efac;
}

.info-section--soft-launch .info-tap-pill {
    border-color: rgba(134, 239, 172, 0.7);
    color: #bbf7d0;
}

.info-section--soft-launch.expanded .info-tap-pill {
    border-color: rgba(187, 247, 208, 0.9);
    background: rgba(34, 197, 94, 0.18);
}

.info-section--merch {
    background: transparent;
    border: 2px solid rgba(96, 165, 250, 0.75);
}

.info-section--merch.expanded {
    background: rgba(59, 130, 246, 0.12);
}

.info-section--merch .info-section-heading b {
    color: #60A5FA;
}

.info-section--merch .info-tap-pill {
    border-color: rgba(96, 165, 250, 0.75);
    color: #93C5FD;
}

.info-section--merch.expanded .info-tap-pill {
    border-color: rgba(147, 197, 253, 0.9);
    background: rgba(59, 130, 246, 0.18);
}

.info-section--merch .info-section-body a {
    color: #60A5FA;
}

.info-section:focus-visible {
    outline: 2px solid #DEB887;
    outline-offset: 2px;
}

.info-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 4rem;
    gap: 1rem;
}

.info-section-heading {
    margin: 0;
    color: #F9FAFB;
    font-size: clamp(1.45rem, 4vw, 1.95rem);
    font-weight: 700;
    line-height: 1.3;
}

.info-section-heading b {
    font-weight: 800;
}

.info-section-date {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78em;
    font-weight: 500;
    font-style: italic;
}

.info-section .table-instruction {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-style: italic;
}

.info-section .info-tap-pill {
    display: grid;
    place-items: center;
    width: clamp(2.5rem, 7vw, 3.5rem);
    height: clamp(2.5rem, 7vw, 3.5rem);
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    font-size: clamp(1.65rem, 4.2vw, 2.2rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 0;
    padding: 0;
    flex-shrink: 0;
    pointer-events: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

/* Segoe / Windows paints “+” high in the em box — nudge optically into the circle */
.info-section .info-tap-pill::before {
    content: '+';
    display: block;
    line-height: 1;
    transform: translateY(0.02em);
}

.info-section.expanded .info-tap-pill {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

.info-section.expanded .info-tap-pill::before {
    content: '−';
    transform: translateY(-0.04em);
}

.info-section-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.info-section.expanded .info-section-content {
    grid-template-rows: 1fr;
}

.info-section-content > .info-section-body {
    overflow: hidden;
    min-height: 0;
}

.info-section.expanded .info-section-header {
    margin-bottom: 0.75rem;
}

.info-section-body {
    line-height: 1.6;
    color: #F3F4F6;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.info-section-body h3 {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    color: #F9FAFB;
    margin: 1.35rem 0 0.7rem;
    font-weight: 700;
}

.info-section-body h3:first-child {
    margin-top: 0.35rem;
}

.info-section-body p {
    margin: 0.85rem 0;
}

.info-section-body ul,
.info-section-body ol {
    margin: 0.85rem 0;
    padding-left: 1.6rem;
}

.info-section-body li {
    margin: 0.4rem 0;
}

.info-section-body strong {
    color: #DEB887;
    font-weight: 700;
}

.info-section-body a {
    color: #DEB887;
    text-decoration: underline;
    font-weight: 600;
}

.info-section-body a:hover {
    color: #F9FAFB;
}

.info-section-body .contact-block {
    margin: 0.5rem 0 0;
    padding: 1rem 1.15rem;
    background: rgba(75, 85, 99, 0.35);
    border-radius: 0.5rem;
    border-left: 4px solid #DEB887;
}

/* Learn view: reuse the same header chrome inside the shell */
#view-learn .info-page-header {
    width: 100%;
    max-width: 800px;
    align-self: center;
}

#view-learn .main-content > .info-page-header {
    margin-bottom: clamp(0.15rem, 1vw, 0.35rem);
}

@media (max-width: 480px) {
    .info-page-title {
        font-size: clamp(1.65rem, 7vw, 2.1rem);
    }

    .info-section-heading .table-instruction {
        display: none;
    }
}

/* Updates & News: same slide-up sheet as the account drawer. */
.info-page--drawer {
    min-height: 100vh;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #0b1018;
}

.info-page--drawer {
    --updates-nav-clearance: calc(var(--bottom-nav-content-height, 60px) + 3.5px + max(3.5px, env(safe-area-inset-bottom, 0px)));
}

.info-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(5, 8, 14, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.info-drawer__sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    background: #151a24;
    color: #f3f4f6;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    touch-action: pan-y;
    animation: info-drawer-in .34s cubic-bezier(.22, 1, .36, 1);
}

.info-drawer__sheet.is-closing {
    animation: info-drawer-out .22s ease forwards;
}

.info-drawer__sheet.is-dragging {
    animation: none;
    transition: none;
}

@keyframes info-drawer-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes info-drawer-out {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.info-drawer__grip {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    padding: max(10px, env(safe-area-inset-top, 0px)) 0 2px;
    cursor: grab;
    touch-action: none;
}

.info-drawer__handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.info-drawer__close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    cursor: pointer;
    z-index: 3;
}

.info-drawer__close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.info-drawer__close svg {
    width: 14px;
    height: 14px;
}

.info-drawer__scroll {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 1rem calc(var(--updates-nav-clearance) + 1.25rem);
}

.info-page--drawer .info-page-shell,
.info-page--drawer .info-page-stack,
.info-page--drawer .info-section,
.info-page--drawer .info-section-heading {
    min-width: 0;
    max-width: 100%;
}

.info-page--drawer .info-page-shell {
    max-width: none;
}

.info-page--drawer .info-page-meta--contact {
    overflow-wrap: anywhere;
}

.info-page--drawer .info-page-header {
    padding-right: 2.8rem;
    margin-bottom: 0.35rem;
}

@media (min-width: 641px) {
    .info-drawer {
        align-items: center;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + var(--updates-nav-clearance));
        box-sizing: border-box;
    }

    .info-drawer__sheet {
        width: min(920px, 100%);
        height: auto;
        max-height: 100%;
        border-radius: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
        animation: info-drawer-card-in .28s cubic-bezier(.22, 1, .36, 1);
    }

    .info-drawer__sheet.is-closing {
        animation: info-drawer-card-out .2s ease forwards;
    }

    .info-drawer__grip {
        display: none;
    }

    .info-drawer__close {
        top: 14px;
        right: 14px;
    }

    .info-drawer__scroll {
        max-height: min(78vh, 820px);
    }
}

@keyframes info-drawer-card-in {
    from { transform: translateY(10px) scale(.985); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes info-drawer-card-out {
    from { transform: none; opacity: 1; }
    to { transform: translateY(10px) scale(.985); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .info-drawer__sheet,
    .info-drawer__sheet.is-closing {
        animation: none;
    }
}
