/* ──────────────────────────────────────────────────────────────────
   PUBLIC FOOTER (landing + login + signup)
   Variant A: 3 lines, centered, Finviz-style minimal.
   ────────────────────────────────────────────────────────────────── */

.public-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 24px 24px;
    text-align: center;
    background: var(--bg, #08080A);
    border-top: 1px solid #1A1A1A;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.public-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    font-size: 11px;
    margin-bottom: 8px;
}

.public-footer-links a {
    color: #888;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

.public-footer-links a:hover {
    color: #E8E8E8;
}

.public-footer-sep {
    color: #2A2A2A;
    padding: 0 8px;
    user-select: none;
}

.public-footer-disclaimer {
    font-size: 10px;
    color: #555;
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}

.public-footer-copyright {
    font-size: 10px;
    color: #555;
    letter-spacing: 0.02em;
}

/* Push the landing-scene footer to the bottom on tall viewports */
.landing-scene > .public-footer { margin-top: auto; }

/* Auth-scene footer: span full width, never squish */
.auth-scene > .public-footer {
  width: 100%;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────
   LEGAL PAGES (rendered inside the auth-scene chrome)
   ────────────────────────────────────────────────────────────────── */

.legal-scene { padding-bottom: 60px; }

.legal-card {
    /* Translucent over the sun gradient — intentional, do not replace with var(--bg). */
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 96px auto 32px;
    padding: 40px 48px;
    background: rgba(11, 11, 11, 0.85);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    color: #D8D8D8;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.65;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #FFF;
    letter-spacing: -0.02em;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 10px;
    color: #FFF;
    letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
    font-size: 14px;
    color: #C8C8C8;
}

.legal-content a {
    color: var(--accent-interactive);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-interactive);
}

.legal-content a:hover { color: var(--accent-interactive-hover); border-color: var(--accent-interactive-hover); }

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.legal-content th,
.legal-content td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    color: #888;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-content strong { color: #FFF; }

.legal-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.legal-404 {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 25vh;
}

.legal-404-code {
    font-size: 96px;
    margin: 0;
    color: var(--accent-interactive);
    font-weight: 700;
}

.legal-404-text {
    color: #888;
    margin: 8px 0 24px;
}

/* ──────────────────────────────────────────────────────────────────
   SIGNUP CGU CHECKBOX
   ────────────────────────────────────────────────────────────────── */

.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 4px;
    font-size: 12px;
    color: #BBB;
    line-height: 1.5;
}

.auth-checkbox .form-check-input {
    margin-top: 3px;
    background-color: #1A1A1A;
    border-color: #333;
    cursor: pointer;
}

.auth-checkbox .form-check-input:checked {
    background-color: var(--accent-interactive);
    border-color: var(--accent-interactive);
}

.auth-checkbox label { cursor: pointer; }

/* Disabled SIGN UP button state */
.auth-btn:disabled,
.auth-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────────
   CGU FORCED-ACCEPTANCE MODAL (for existing users)
   ────────────────────────────────────────────────────────────────── */

.cgu-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cgu-modal-overlay.is-closed { display: none; }

.cgu-modal-box {
    background: var(--panel);
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #D8D8D8;
}

.cgu-modal-head {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
}

.cgu-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFF;
    margin: 0 0 6px;
}

.cgu-modal-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.cgu-modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 28px;
    font-size: 13px;
    line-height: 1.6;
}

.cgu-modal-scroll h2 { font-size: 16px; color: #FFF; margin: 18px 0 8px; }
.cgu-modal-scroll h3 { font-size: 14px; color: #FFF; margin: 14px 0 6px; }
.cgu-modal-scroll a  { color: var(--accent-interactive); }
.cgu-modal-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cgu-modal-scroll th, .cgu-modal-scroll td {
    padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left;
}

.cgu-modal-foot {
    padding: 16px 28px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cgu-modal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #BBB;
}

.cgu-modal-checkbox .form-check-input {
    margin-top: 3px;
    background-color: #1A1A1A;
    border-color: #333;
}

.cgu-modal-checkbox .form-check-input:checked {
    background-color: var(--accent-interactive);
    border-color: var(--accent-interactive);
}

.cgu-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cgu-modal-accept-btn {
    background: var(--accent-interactive);
    color: #000;
    border: none;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.cgu-modal-accept-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cgu-modal-logout-link {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px dotted #444;
}

.cgu-modal-logout-link:hover { color: #999; }

/* ──────────────────────────────────────────────────────────────────
   ACCOUNT MENU — Legal section
   ────────────────────────────────────────────────────────────────── */

.account-legal-section {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 16px;
}

.account-legal-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6B6B6B;
    margin-bottom: 10px;
}

.account-legal-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.account-legal-links a {
    color: #999;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.account-legal-links a:hover { color: #FFF; }

