/* ===== TERMS OF SERVICE PAGE STYLES ===== */

/* Body and Layout */
body {
    background: linear-gradient(180deg,
        rgba(248, 250, 252, 0.6) 0%,
        rgba(255, 255, 255, 1) 20%,
        rgba(255, 255, 255, 1) 80%,
        rgba(248, 250, 252, 0.6) 100%
    );
}

.terms-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 85rem;
    margin: 0 auto;
    padding: calc(80px + var(--space-12)) var(--space-6) var(--space-12);
    gap: var(--space-12);
    align-items: start;
}

/* Sidebar Navigation */
.terms-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--border-radius-lg);
    padding: var(--space-5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.terms-nav-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

/* Desktop List Navigation */
.terms-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.terms-nav-link {
    display: block;
    font-size: 0.75rem;
    color: var(--color-slate-600);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.3;
    font-family: var(--font-mono);
}

.terms-nav-link:hover {
    background: var(--color-slate-100);
    color: var(--color-slate-900);
    padding-left: 12px;
}

.terms-nav-link.active {
    background: var(--color-slate-900);
    color: white;
    font-weight: 500;
}

/* Mobile Dropdown Navigation - Hidden on Desktop */
.terms-dropdown-wrapper {
    display: none;
    position: relative;
}

.terms-dropdown {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: var(--space-8);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: var(--color-slate-700);
    background: white;
    border: 1px solid var(--color-slate-300);
    border-radius: var(--border-radius);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.terms-dropdown:hover {
    border-color: var(--color-slate-400);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.terms-dropdown:focus {
    outline: none;
    border-color: var(--color-slate-900);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.dropdown-icon {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-slate-500);
}

/* Main Content */
.terms-content {
    width: 100%;
    background: white;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--border-radius-xl);
    padding: var(--space-12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Header */
.terms-header {
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-10);
    border-bottom: 2px solid var(--color-slate-200);
}

.terms-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: var(--space-3);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.terms-date {
    font-size: 0.875rem;
    color: var(--color-blue-600);
    font-family: var(--font-mono);
    margin-bottom: var(--space-6);
    font-weight: 500;
}

.terms-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-slate-700);
    margin: 0;
}

/* Sections */
.terms-section {
    margin-bottom: var(--space-16);
    scroll-margin-top: 100px;
}

.terms-section:last-of-type {
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    line-height: 1.3;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--color-slate-200);
    display: inline-block;
}

.section-number {
    font-family: var(--font-mono);
    color: var(--color-blue-600);
    font-weight: 700;
    font-size: 0.85em;
    margin-right: 0.15em;
}

.section-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-slate-700);
}

.section-content > p {
    margin-bottom: var(--space-5);
}

.section-content > p:last-child {
    margin-bottom: 0;
}

/* Subsections with column layout */
.subsection-row {
    display: flex;
    gap: 1em;
    margin-bottom: var(--space-5);
}

.subsection-number {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-slate-900);
    font-size: 0.95rem;
    flex-shrink: 0;
    min-width: 2.5em;
}

.subsection-text {
    flex: 1;
    line-height: 1.75;
}

.subsection-text ul {
    margin-top: var(--space-3);
}

.subsection-text p {
    margin: 0;
}

.subsection-text p + p {
    margin-top: var(--space-4);
}

/* Legacy inline subsection titles (if any remain) */
.subsection-title {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-slate-900);
    font-size: 0.95rem;
    margin-right: 0.5em;
}

/* Lists */
.section-content ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.section-content li {
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.section-content li:last-child {
    margin-bottom: 0;
}

/* Definition List */
.definition-list {
    display: grid;
    gap: var(--space-5);
}

.definition-list dt {
    font-weight: 600;
    color: var(--color-slate-900);
    font-size: 1rem;
    margin-bottom: var(--space-2);
}

.definition-list dd {
    margin-left: var(--space-4);
    padding-left: var(--space-4);
    border-left: 3px solid var(--color-slate-200);
    color: var(--color-slate-700);
    line-height: 1.7;
}

.definition-list a {
    color: var(--color-blue-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.definition-list a:hover {
    color: var(--color-blue-700);
    text-decoration: underline;
}

/* Pricing Highlight */
.pricing-highlight {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(147, 197, 253, 0.03) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-left: 4px solid var(--color-blue-600);
    border-radius: var(--border-radius);
    padding: var(--space-6);
    margin: var(--space-4) 0;
}

.pricing-highlight p {
    margin-bottom: var(--space-3);
}

.pricing-highlight p:last-child {
    margin-bottom: 0;
}

.pricing-highlight strong {
    color: var(--color-slate-900);
    font-size: 1.125rem;
}

/* Links */
.section-content a {
    color: var(--color-blue-600);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.section-content a:hover {
    color: var(--color-blue-700);
    text-decoration: underline;
}

/* Footer */
.terms-footer {
    margin-top: var(--space-12);
    padding-top: var(--space-10);
    border-top: 2px solid var(--color-slate-200);
}

.terms-footer-content {
    text-align: center;
}

.terms-footer-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: var(--space-4);
}

.terms-footer-content p {
    font-size: 1.125rem;
    color: var(--color-slate-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.terms-footer-content a:not(.btn) {
    color: var(--color-blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-footer-content a:not(.btn):hover {
    color: var(--color-blue-700);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
        padding-top: calc(80px + var(--space-8));
    }

    .terms-sidebar {
        position: relative;
        top: 0;
        order: -1;
    }

    /* Switch to dropdown on tablet/mobile */
    .terms-nav-list {
        display: none;
    }

    .terms-dropdown-wrapper {
        display: block;
    }

    .terms-content {
        padding: var(--space-10);
    }
}

@media (max-width: 768px) {
    .terms-wrapper {
        padding: calc(80px + var(--space-6)) var(--space-4) var(--space-8);
        gap: var(--space-8);
    }

    .terms-sidebar {
        padding: var(--space-4);
    }

    .terms-nav-title {
        font-size: 0.65rem;
    }

    .terms-dropdown {
        font-size: 0.8rem;
    }

    .terms-content {
        padding: var(--space-8) var(--space-6);
        border-radius: var(--border-radius-lg);
    }

    .terms-header {
        margin-bottom: var(--space-12);
        padding-bottom: var(--space-8);
    }

    .terms-title {
        font-size: 2rem;
    }

    .terms-date {
        font-size: 0.8rem;
    }

    .terms-intro {
        font-size: 1rem;
    }

    .terms-section {
        margin-bottom: var(--space-12);
    }

    .section-title {
        font-size: 1.35rem;
    }

    .section-content {
        font-size: 0.95rem;
    }

    .subsection-title {
        font-size: 0.9rem;
    }

    .definition-list dd {
        margin-left: var(--space-2);
        padding-left: var(--space-3);
    }

    .pricing-highlight {
        padding: var(--space-5);
    }

    .pricing-highlight strong {
        font-size: 1rem;
    }

    .terms-footer {
        margin-top: var(--space-10);
        padding-top: var(--space-8);
    }

    .terms-footer-content h3 {
        font-size: 1.25rem;
    }

    .terms-footer-content p {
        font-size: 1rem;
    }

    .section-content ul {
        padding-left: var(--space-5);
    }
}

@media (max-width: 480px) {
    .terms-wrapper {
        padding: calc(80px + var(--space-4)) var(--space-3) var(--space-6);
        gap: var(--space-6);
    }

    .terms-sidebar {
        padding: var(--space-4);
    }

    .terms-nav-title {
        font-size: 0.65rem;
        margin-bottom: var(--space-2);
    }

    .terms-dropdown {
        font-size: 0.75rem;
        padding: var(--space-2) var(--space-3);
        padding-right: var(--space-6);
    }

    .dropdown-icon {
        right: var(--space-2);
        width: 14px;
        height: 14px;
    }

    .terms-content {
        padding: var(--space-6) var(--space-4);
    }

    .terms-title {
        font-size: 1.75rem;
        margin-bottom: var(--space-2);
    }

    .terms-date {
        font-size: 0.75rem;
        margin-bottom: var(--space-4);
    }

    .terms-intro {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .terms-header {
        margin-bottom: var(--space-10);
        padding-bottom: var(--space-6);
    }

    .terms-title {
        font-size: 1.75rem;
    }

    .terms-date {
        font-size: 0.75rem;
    }

    .terms-intro {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.15rem;
        margin-bottom: var(--space-4);
        padding-bottom: var(--space-3);
    }

    .section-content {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .subsection-title {
        font-size: 0.85rem;
    }

    .section-content ul {
        padding-left: var(--space-4);
        margin: var(--space-3) 0;
    }

    .section-content li {
        margin-bottom: var(--space-2);
    }

    .definition-list {
        gap: var(--space-4);
    }

    .definition-list dt {
        font-size: 0.9rem;
    }

    .definition-list dd {
        font-size: 0.85rem;
        margin-left: 0;
        padding-left: var(--space-3);
    }

    .pricing-highlight {
        padding: var(--space-4);
        margin: var(--space-3) 0;
    }

    .pricing-highlight p {
        font-size: 0.9rem;
        margin-bottom: var(--space-2);
    }

    .pricing-highlight strong {
        font-size: 0.95rem;
    }

    .terms-footer {
        margin-top: var(--space-8);
        padding-top: var(--space-6);
    }

    .terms-footer-content h3 {
        font-size: 1.125rem;
        margin-bottom: var(--space-3);
    }

    .terms-footer-content p {
        font-size: 0.9rem;
        margin-bottom: var(--space-5);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Simple Footer */
.simple-footer {
    padding: var(--space-10) var(--space-6);
    text-align: center;
}

.simple-footer-content {
    max-width: 85rem;
    margin: 0 auto;
}

.simple-footer-content p {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    margin: 0;
    font-family: var(--font-mono);
}

/* Print styles */
@media print {
    .nav,
    .terms-sidebar,
    .terms-footer .btn {
        display: none;
    }

    .terms-wrapper {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .terms-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .terms-section {
        page-break-inside: avoid;
    }

    body {
        background: white;
    }
}
