/* =============================================
   TERMS PAGE — Oula Landing
   ============================================= */

/* Hero */
.terms-hero {
    background-color: var(--primary-brand-main);
    padding: 64px var(--spacing-lg) 48px;
    text-align: center;
}

.terms-hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-primary-cta);
    background: rgba(199, 252, 87, 0.12);
    border: 1px solid rgba(199, 252, 87, 0.3);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    margin-bottom: var(--spacing-md);
}

.terms-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--surface-white);
    margin: 0 0 var(--spacing-sm);
    line-height: 1.15;
}

.terms-hero-title span {
    color: var(--accent-primary-cta);
}

.terms-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.terms-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terms-hero-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

/* Layout */
.terms-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    align-items: start;
}

/* Sidebar TOC */
.terms-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: var(--spacing-md);
    border-right: 1px solid #E8F0E8;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary-cta) transparent;
}

.terms-toc::-webkit-scrollbar {
    width: 3px;
}
.terms-toc::-webkit-scrollbar-thumb {
    background: var(--accent-primary-cta);
    border-radius: 2px;
}

.terms-toc-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-brand-main);
    opacity: 0.4;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.terms-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.terms-toc-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #5A7A5A;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    line-height: 1.4;
}

.terms-toc-list a:hover {
    background: rgba(199, 252, 87, 0.12);
    color: var(--primary-brand-main);
}

.terms-toc-list a.active {
    background: var(--primary-brand-main);
    color: var(--surface-white);
    font-weight: 600;
}

.terms-toc-num {
    font-size: 9px;
    font-weight: 800;
    color: var(--primary-brand-main);
    background: var(--accent-primary-cta);
    min-width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
    opacity: 0.75;
    transition: opacity 0.18s;
}

.terms-toc-list a:hover .terms-toc-num {
    opacity: 1;
}

.terms-toc-list a.active .terms-toc-num {
    background: var(--accent-primary-cta);
    color: var(--primary-brand-main);
    opacity: 1;
}

/* Content */
.terms-content {
    padding-left: var(--spacing-xl);
    min-width: 0;
}

/* Section */
.terms-section {
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid #F0F4F0;
    margin-bottom: var(--spacing-xl);
    scroll-margin-top: 88px;
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.terms-section-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-primary-cta);
    background: var(--primary-brand-main);
    border-radius: var(--radius-sm);
    padding: 4px 9px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    margin-top: 4px;
    flex-shrink: 0;
}

.terms-h2 {
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 700;
    color: var(--primary-brand-main);
    margin: 0;
    line-height: 1.3;
}

.terms-body p {
    font-size: 14px;
    line-height: 1.8;
    color: #3A5040;
    margin-bottom: var(--spacing-sm);
}

.terms-body p:last-child {
    margin-bottom: 0;
}

.terms-body ul,
.terms-body ol {
    margin: 0 0 var(--spacing-sm) var(--spacing-md);
    padding: 0;
}

.terms-body li {
    font-size: 14px;
    line-height: 1.8;
    color: #3A5040;
    margin-bottom: 4px;
}

.terms-body strong {
    color: var(--primary-brand-main);
    font-weight: 600;
}

/* Definitions grid */
.terms-definitions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.terms-definition-item {
    background: #F7FBF7;
    border: 1px solid #E0EDE0;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
}

.terms-definition-term {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-brand-main);
    margin-bottom: 4px;
}

.terms-definition-desc {
    font-size: 13px;
    color: #5A7A5A;
    line-height: 1.6;
}

/* Restrictions list */
.terms-restrictions {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.terms-restrictions li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #FFF8F8;
    border: 1px solid #F0E0E0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #5A4040;
    line-height: 1.6;
    margin-bottom: 0;
}

.terms-restrictions li::before {
    content: "✕";
    font-size: 10px;
    font-weight: 700;
    color: #D06060;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Integrations callout */
.terms-callout {
    background: rgba(13, 43, 38, 0.04);
    border-left: 3px solid var(--accent-primary-cta);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.terms-callout p {
    margin-bottom: 0 !important;
    font-size: 13px !important;
    color: var(--primary-brand-main) !important;
    font-weight: 500;
}

/* Contact box */
.terms-contact-card {
    background: var(--primary-brand-main);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.terms-contact-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--surface-white);
    margin: 0 0 4px;
}

.terms-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.terms-contact-row a {
    color: var(--accent-primary-cta);
    text-decoration: none;
}

.terms-contact-row a:hover {
    text-decoration: underline;
}

/* Back CTA */
.terms-footer-cta {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

/* Responsive */
@media (max-width: 900px) {
    .terms-layout {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .terms-toc {
        display: none;
    }

    .terms-content {
        padding-left: 0;
    }

    .terms-definitions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        padding: 48px var(--spacing-sm) 36px;
    }

    .terms-section-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}
