@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.legal-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.theme-transition { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

.orange-gradient-bg {
    background: linear-gradient(135deg, #ff6b35 0%, #e64a19 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-blur { backdrop-filter: blur(12px); }
.dark .nav-blur {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}
body:not(.dark) .nav-blur {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 107, 53, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #e64a19 100%);
    transition: all 0.3s ease;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(255, 107, 53, 0.45);
}
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.legal-hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%);
    pointer-events: none;
}

.legal-card {
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.dark .legal-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 107, 53, 0.2);
}
body:not(.dark) .legal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #334155;
}
.dark .form-label { color: #e2e8f0; }

.form-field {
    position: relative;
}
.form-field > i.field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}
.form-field.textarea-wrap > i.field-icon { top: 1rem; transform: none; }

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input.no-icon { padding-left: 1rem; }
select.form-input { padding-left: 2.75rem; appearance: none; cursor: pointer; }
textarea.form-input { padding-top: 0.85rem; min-height: 110px; resize: vertical; }

.dark .form-input {
    background: #141414;
    border-color: rgba(255, 107, 53, 0.25);
    color: #f1f5f9;
}
.form-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: #fff;
}
.dark .form-input:focus { background: #1a1a1a; }

.form-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.35rem;
    line-height: 1.5;
}
.dark .form-hint { color: #94a3b8; }

.info-box {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #ff6b35;
}
body:not(.dark) .info-box {
    background: linear-gradient(90deg, rgba(255,107,53,.06) 0%, transparent 100%);
    border: 1px solid rgba(255,107,53,.15);
    border-left: 4px solid #ff6b35;
}
.dark .info-box {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.dark .alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.dark .alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 7rem;
    color: inherit;
}
.legal-content h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content h4 { font-size: 1rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.legal-content p, .legal-content li { line-height: 1.8; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.legal-content ol { list-style: decimal; padding-left: 1.5rem; margin: 0.75rem 0 1rem; }
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    overflow: hidden;
}
.legal-content th, .legal-content td {
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}
body:not(.dark) .legal-content th { background: #f1f5f9; font-weight: 600; }
.dark .legal-content th { background: #1a1a1a; }
.dark .legal-content td { background: #111; }

.app-card {
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
body:not(.dark) .app-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
}
.dark .app-card {
    background: #141414;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.legal-toc {
    border-radius: 1rem;
}
body:not(.dark) .legal-toc {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.dark .legal-toc {
    background: #1a1a1a;
    border: 1px solid rgba(255, 107, 53, 0.2);
}
.legal-toc a { transition: color 0.2s; }
.legal-toc a:hover { color: #ff6b35; }

.page-enter { animation: pageEnter 0.5s ease-out; }
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkbox-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.dark .checkbox-row {
    background: #141414;
    border-color: rgba(255, 107, 53, 0.2);
}
.checkbox-row input { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; accent-color: #ff6b35; flex-shrink: 0; }
