/* ── Consent Checklist ─────────────────────────────────────────────────── */
.consent-checklist {
    margin: 20px 0 24px;
}

.consent-item {
    margin-bottom: 14px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    transition: all 0.25s ease;
    user-select: none;
}

.consent-label:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.consent-label.is-accepted {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.consent-checkbox-wrap {
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
}

.consent-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    color: transparent;
}

.consent-checkbox:checked + .consent-checkbox-custom {
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%);
    border-color: #7c3aed;
    color: #fff;
}

.consent-checkbox:disabled + .consent-checkbox-custom {
    opacity: 0.5;
}

.consent-checkbox:checked:disabled + .consent-checkbox-custom {
    opacity: 1;
}

.consent-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
}

.consent-link {
    color: #7c3aed;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed #7c3aed;
    transition: color 0.2s;
}

.consent-link:hover {
    color: #6d28d9;
}

/* ── Full-Screen Consent Sheet Overlay ────────────────────────────────── */
.consent-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consent-sheet-overlay.is-visible {
    opacity: 1;
}

.consent-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    max-height: 92vh;
    background: #fff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.consent-sheet-overlay.is-visible .consent-sheet {
    transform: translateY(0);
}

.consent-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.consent-sheet-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: #1f2937;
    margin: 0;
}

.consent-sheet-close {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    color: #6b7280;
}

.consent-sheet-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.consent-sheet-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
    position: relative;
}

.consent-sheet-content {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #4b5563;
}

.consent-sheet-content h1,
.consent-sheet-content h2,
.consent-sheet-content h3,
.consent-sheet-content h4 {
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.consent-sheet-content h1 { font-size: 1.3rem; font-weight: 800; }
.consent-sheet-content h2 { font-size: 1.1rem; font-weight: 700; }
.consent-sheet-content h3 { font-size: 1rem; font-weight: 700; }

.consent-sheet-content p {
    margin-bottom: 1em;
}

.consent-sheet-content ul,
.consent-sheet-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.consent-sheet-content li {
    margin-bottom: 0.4em;
}

.consent-sheet-content a {
    color: #7c3aed;
    text-decoration: underline;
}

.consent-sheet-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
    background: #fff;
}

.consent-scroll-hint {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: bounceHint 1.5s ease infinite;
}

.consent-scroll-hint.is-hidden {
    display: none;
}

@keyframes bounceHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.btn-consent-accept {
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.btn-consent-accept:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.3);
    color: white;
}

.btn-consent-accept:disabled {
    opacity: 0.45;
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    color: white;
}

/* ── Consent Page Specific ────────────────────────────────────────────── */
.consent-page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.consent-page-branding {
    margin-bottom: auto;
    padding-top: 10vh;
    text-align: center;
    color: white;
}

.consent-page-sheet {
    background: white;
    width: 100%;
    max-width: 480px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 36px 30px 40px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.consent-page-title {
    color: #1f2937;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.consent-page-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.consent-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.btn-consent-continue {
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 800;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.btn-consent-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(124, 58, 237, 0.3);
    color: white;
}

.btn-consent-continue:disabled {
    opacity: 0.5;
    background: #9ca3af;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    color: white;
}

/* ── Account Legal Document View ──────────────────────────────────────── */
.legal-doc-view {
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #374151;
}

.legal-doc-view h1,
.legal-doc-view h2,
.legal-doc-view h3 {
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.legal-doc-view h1 { font-size: 1.3rem; font-weight: 800; }
.legal-doc-view h2 { font-size: 1.1rem; font-weight: 700; }
.legal-doc-view h3 { font-size: 1rem; font-weight: 600; }

.legal-doc-view p { margin-bottom: 1em; }
.legal-doc-view ul, .legal-doc-view ol { padding-left: 1.5em; margin-bottom: 1em; }
.legal-doc-view li { margin-bottom: 0.4em; }

.legal-doc-version {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
    margin-bottom: 20px;
}
