/* terms.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    color: #0f172a;
    line-height: 1.6;
}

.terms-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.policy-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 72px 64px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.6) 0%, #ffffff 55%);
    box-shadow: 0 25px 45px -20px rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
    margin-bottom: 40px;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.6;
}

.hero-shape {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
    animation: float-shape 18s infinite ease-in-out;
    filter: blur(0.5px);
}

.hero-shape.shape-1 {
    width: 480px;
    height: 480px;
    top: -200px;
    right: -120px;
}

.hero-shape.shape-2 {
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -80px;
    animation-duration: 22s;
    animation-direction: reverse;
}

.hero-shape.shape-3 {
    width: 260px;
    height: 260px;
    top: 45%;
    left: 12%;
    animation-duration: 20s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(24px, -24px) scale(1.08);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(29, 78, 216, 0.35) 100%);
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 12px 24px -14px rgba(37, 99, 235, 0.55);
}

.hero-badge svg {
    color: inherit;
}

.hero-title {
    font-size: clamp(42px, 4vw, 58px);
    font-weight: 900;
    letter-spacing: -2px;
    color: #0f172a;
    margin-bottom: 20px;
}

.title-highlight {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.45) 100%);
    border-radius: 999px;
}

.hero-description {
    font-size: 18px;
    color: #475569;
    max-width: 560px;
    margin: 0 auto;
    font-weight: 500;
}

.description-highlight {
    color: #1d4ed8;
    font-weight: 700;
    position: relative;
}

.description-highlight::before {
    content: '';
    position: absolute;
    inset: auto 0 -4px 0;
    height: 10px;
    background: rgba(219, 234, 254, 0.8);
    border-radius: 6px;
    z-index: -1;
}

.terms-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 15px 30px -24px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.tab-btn {
    flex: 1;
    padding: 16px 22px;
    border: none;
    border-radius: 14px;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover:not(.active) {
    background: rgba(226, 232, 240, 0.6);
    color: #1d4ed8;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px -10px rgba(37, 99, 235, 0.4);
}

.terms-meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.terms-version {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.version-select-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.version-label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.version-select {
    min-width: 260px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    font-weight: 600;
    color: #1f2937;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 8px;
}

.version-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.terms-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 18px 45px -30px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(6px);
}

.terms-content h1,
.terms-content h2,
.terms-content h3 {
    color: #1e293b;
    margin: 32px 0 16px;
    font-weight: 700;
}

.terms-content p {
    margin-bottom: 14px;
    color: #334155;
    font-size: 15px;
}

.terms-content ul,
.terms-content ol {
    padding-left: 20px;
    margin: 16px 0;
    color: #334155;
}

.terms-content li {
    margin-bottom: 8px;
}

@media (max-width: 1024px) {
    .terms-container {
        padding: 60px 20px 100px;
    }

    .policy-hero {
        padding: 60px 40px;
    }

    .terms-content {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .terms-container {
        padding: 48px 16px 80px;
    }

    .policy-hero {
        padding: 48px 28px;
        border-radius: 22px;
    }

    .hero-badge {
        padding: 10px 22px;
        font-size: 13px;
    }

    .terms-tabs {
        flex-direction: column;
        padding: 12px;
    }

    .tab-btn {
        font-size: 15px;
    }

    .terms-meta {
        justify-content: center;
    }

    .version-select-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .custom-select {
        width: 100%;
    }

    .terms-content {
        padding: 32px 24px;
    }
}
