/* Katılım Şartları ve hukuki metin sayfaları */
.terms-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(158, 56, 72, 0.14), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(196, 163, 90, 0.08), transparent 28rem),
        #09090B;
    min-height: 100vh;
    padding: 118px 0 72px;
}

.terms-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.terms-hero {
    border: 1px solid rgba(196, 163, 90, 0.18);
    background: linear-gradient(145deg, rgba(22, 21, 24, 0.96), rgba(12, 12, 15, 0.98));
    border-radius: 18px;
    padding: clamp(26px, 4vw, 48px);
    margin-bottom: 28px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.terms-hero__eyebrow {
    color: #C4A35A;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.terms-hero h1 {
    color: #F4F1EB;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    max-width: 850px;
}

.terms-hero__lead {
    color: #A8A39A;
    font-size: clamp(0.94rem, 1.5vw, 1.05rem);
    line-height: 1.75;
    max-width: 820px;
    margin: 0;
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 24px;
}

.terms-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #2C2C33;
    background: #111115;
    color: #B4B0A8;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.terms-meta__item strong {
    color: #E8E2D6;
}

.terms-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 96px;
    border: 1px solid #26262D;
    background: rgba(16, 16, 20, 0.94);
    border-radius: 14px;
    padding: 18px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    scrollbar-width: thin;
}

.terms-toc h2 {
    color: #F5DE9B;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.terms-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: terms-toc;
}

.terms-toc li {
    counter-increment: terms-toc;
    margin: 0;
}

.terms-toc a {
    display: block;
    color: #A8A39A;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.45;
    padding: 7px 8px 7px 28px;
    border-radius: 7px;
    position: relative;
    transition: color 150ms ease, background 150ms ease;
}

.terms-toc a::before {
    content: counter(terms-toc, decimal-leading-zero);
    position: absolute;
    left: 8px;
    color: #6F6A62;
    font-size: 0.68rem;
    font-weight: 800;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
    color: #F4F1EB;
    background: rgba(196, 163, 90, 0.08);
    outline: none;
}

.terms-panel {
    min-width: 0;
    border: 1px solid #26262D;
    background: #101014;
    border-radius: 16px;
    overflow: hidden;
}

.terms-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid #26262D;
    padding: 18px 22px;
    background: #121217;
}

.terms-panel__head h2 {
    color: #E8E4DC;
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.02em;
}

.terms-status {
    color: #8AD2A0;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(76, 175, 80, 0.32);
    background: rgba(76, 175, 80, 0.08);
    padding: 5px 9px;
    border-radius: 999px;
}

.terms-content {
    padding: clamp(22px, 4vw, 42px);
    color: #C8C3BA;
    font-size: 0.95rem;
    line-height: 1.85;
}

.terms-content .terms-notice {
    border-left: 3px solid #9E3848;
    background: rgba(158, 56, 72, 0.09);
    border-radius: 0 10px 10px 0;
    padding: 16px 18px;
    margin: 0 0 30px;
}

.terms-content .terms-notice strong {
    display: block;
    color: #F0C7CD;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    margin-bottom: 7px;
}

.terms-content .terms-notice p {
    margin: 0;
    color: #BFAEB0;
    font-size: 0.87rem;
}

.terms-content h2 {
    color: #F4F1EB;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin: 44px 0 14px;
    padding-top: 10px;
    scroll-margin-top: 100px;
}

.terms-content h2:first-of-type {
    margin-top: 8px;
}

.terms-content h3 {
    color: #E8E2D6;
    font-size: 1.02rem;
    margin: 28px 0 10px;
    scroll-margin-top: 100px;
}

.terms-content p {
    margin: 0 0 15px;
}

.terms-content ul,
.terms-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.terms-content li {
    margin: 0 0 9px;
}

.terms-content strong {
    color: #EEE9DF;
}

.terms-content a {
    color: #F5DE9B;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-content a:hover {
    color: #FFF2C4;
}

.terms-content blockquote {
    border-left: 3px solid #C4A35A;
    margin: 22px 0;
    padding: 10px 0 10px 18px;
    color: #A8A39A;
}

.terms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.87rem;
}

.terms-content th,
.terms-content td {
    border: 1px solid #2C2C33;
    padding: 9px 11px;
    text-align: left;
}

.terms-content th {
    background: #17171C;
    color: #E8E2D6;
}

.terms-accept-card {
    border-top: 1px solid #2A2A31;
    background: #0D0D10;
    padding: 24px clamp(22px, 4vw, 42px) 30px;
}

.terms-accept-card h2 {
    color: #F4F1EB;
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.terms-accept-card p {
    color: #A8A39A;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0 0 18px;
}

.terms-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #2C2C33;
    background: #111115;
    border-radius: 10px;
    padding: 14px;
    margin: 0 0 18px;
    cursor: pointer;
}

.terms-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #9E3848;
    flex: 0 0 18px;
}

.terms-check span {
    color: #D6D0C6;
    font-size: 0.86rem;
    line-height: 1.6;
}

.terms-check a {
    color: #F5DE9B;
    font-weight: 700;
}

.terms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.terms-alert {
    border-radius: 10px;
    padding: 13px 16px;
    margin: 0 0 18px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.terms-alert--error {
    border: 1px solid rgba(229, 9, 20, 0.35);
    background: rgba(229, 9, 20, 0.09);
    color: #F0B6BA;
}

.terms-alert--success {
    border: 1px solid rgba(76, 175, 80, 0.35);
    background: rgba(76, 175, 80, 0.09);
    color: #A9E4B7;
}

.terms-gate-note {
    border: 1px solid rgba(196, 163, 90, 0.3);
    background: rgba(196, 163, 90, 0.07);
    border-radius: 10px;
    padding: 13px 16px;
    color: #D9CDA9;
    font-size: 0.84rem;
    line-height: 1.65;
    margin: 0 0 20px;
}

.terms-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #26262D;
}

@media (max-width: 980px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }
    .terms-toc {
        position: static;
        max-height: none;
        order: 2;
    }
    .terms-panel {
        order: 1;
    }
    .terms-toc ol {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 8px;
    }
}

@media (max-width: 640px) {
    .terms-page {
        padding: 94px 0 48px;
    }
    .terms-shell {
        width: min(100% - 24px, 1180px);
    }
    .terms-hero {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .terms-meta {
        gap: 6px;
    }
    .terms-meta__item {
        font-size: 0.69rem;
        padding: 6px 9px;
    }
    .terms-toc ol {
        grid-template-columns: 1fr;
    }
    .terms-content {
        font-size: 0.91rem;
        line-height: 1.78;
        padding: 20px 16px;
    }
    .terms-content h2 {
        margin-top: 34px;
    }
    .terms-panel__head,
    .terms-accept-card {
        padding-left: 16px;
        padding-right: 16px;
    }
    .terms-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
