:root {
    --blue:       #1e5bff;
    --blue-dark:  #0d3490;
    --blue-pale:  #d0deff;
    --navy:       #081e52;
    --bg:         #f4f7ff;
    --white:      #ffffff;
    --border:     #e4ecff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--navy);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(30,91,255,0.08);
    border: 1px solid rgba(30,91,255,0.18);
    border-radius: 100px;
    padding: 5px 14px;
}
.section-label::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--blue);
    border-radius: 50%;
}

.topbar {
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    padding: 14px 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    color: #576385;
}
.topbar-inner a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.topbar-inner a:hover { opacity: 0.75; }
.topbar-sep { color: var(--border); font-size: 1rem; }

.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0a2466 40%, #0d3380 100%);
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(30,91,255,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(95,139,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero-grid {
    position: absolute; inset: 0;
    background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 80%);
}
.page-hero-inner {
    position: relative; z-index: 2;
}
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 20px;
}
.page-hero h1 {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.page-hero h1 em {
    font-style: normal;
    color: transparent;
    background: linear-gradient(90deg, #6FB3FF 0%, #A5C8FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.page-hero-sub {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 28px;
}
.page-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}
.meta-pill svg { width: 14px; height: 14px; opacity: 0.7; }

.terms-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 52px 0 80px;
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 85px;
}
.toc-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}
.toc-title {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border);
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toc-list li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #546486;
    transition: all 0.18s ease;
    line-height: 1.4;
}
.toc-list li a:hover,
.toc-list li a.active {
    color: var(--blue-dark);
    background: rgba(30,91,255,0.07);
}
.toc-num {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--blue);
    background: rgba(30,91,255,0.1);
    border-radius: 5px;
    padding: 1px 6px;
    flex-shrink: 0;
    margin-top: 1px;
}
.toc-list li a:hover .toc-num,
.toc-list li a.active .toc-num {
    background: rgba(30,91,255,0.18);
    color: var(--blue-dark);
}

.toc-download {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: rgba(30,91,255,0.06);
    border: 1.5px solid rgba(30,91,255,0.15);
    border-radius: 12px;
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    transition: all 0.18s;
}
.toc-download:hover {
    background: rgba(30,91,255,0.11);
    border-color: rgba(30,91,255,0.3);
}
.toc-download svg { width: 14px; height: 14px; flex-shrink: 0; }

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.notice-banner {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d4 100%);
    border: 1.5px solid #f5c842;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 32px;
}
.notice-icon {
    width: 36px; height: 36px;
    background: #f5c842;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.notice-icon svg { width: 18px; height: 18px; color: #7a5c00; }
.notice-text {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: #6b4c00;
    line-height: 1.6;
}
.notice-text strong {
    font-weight: 700;
    color: #4a3200;
    display: block;
    margin-bottom: 4px;
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.88rem;
}

.terms-section {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 16px;
    scroll-margin-top: 85px;
    transition: border-color 0.2s;
}
.terms-section:hover {
    border-color: rgba(30,91,255,0.2);
}
.terms-section:last-child { margin-bottom: 0; }

.ts-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--border);
}
.ts-num {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.ts-title {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    padding-top: 6px;
}

.terms-section p {
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    color: #3d4f7a;
    line-height: 1.75;
    margin-bottom: 14px;
}
.terms-section p:last-child { margin-bottom: 0; }

.terms-section h2 {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 22px 0 10px;
}
.terms-section h2:first-child { margin-top: 0; }

.terms-section ul,
.terms-section ol {
    padding-left: 0;
    list-style: none;
    margin-bottom: 14px;
}
.terms-section li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: 'Manrope', sans-serif;
    font-size: 0.87rem;
    color: #3d4f7a;
    line-height: 1.7;
    margin-bottom: 8px;
}
.terms-section li:last-child { margin-bottom: 0; }

.terms-section ul li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}
.terms-section ol {
    counter-reset: item;
}
.terms-section ol li {
    counter-increment: item;
}
.terms-section ol li::before {
    content: counter(item) ".";
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--blue);
    flex-shrink: 0;
    min-width: 20px;
    margin-top: 2px;
}

.info-box {
    background: rgba(30,91,255,0.05);
    border: 1.5px solid rgba(30,91,255,0.15);
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin: 16px 0;
}
.info-box p {
    margin-bottom: 0 !important;
    font-size: 0.84rem !important;
    color: #2a3d70 !important;
}

.warn-box {
    background: rgba(239,83,0,0.05);
    border: 1.5px solid rgba(239,83,0,0.18);
    border-left: 4px solid #ef5300;
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin: 16px 0;
}
.warn-box p {
    margin-bottom: 0 !important;
    font-size: 0.84rem !important;
    color: #7a2c00 !important;
}

.def-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 0.84rem;
}
.def-table th {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7a9d;
    background: var(--bg);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1.5px solid var(--border);
}
.def-table th:first-child { border-radius: 8px 0 0 0; }
.def-table th:last-child { border-radius: 0 8px 0 0; }
.def-table td {
    padding: 11px 14px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    color: #3d4f7a;
    line-height: 1.6;
}
.def-table tr:last-child td { border-bottom: none; }
.def-table tr:nth-child(even) td { background: rgba(244,247,255,0.5); }
.def-table td:first-child {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: 12px;
    border: 1.5px solid var(--border);
}

.table-container .def-table {
    margin: 0;
    border: none;
    min-width: 600px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 4px;
}
.contact-item {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: border-color 0.2s;
}
.contact-item:hover { border-color: rgba(30,91,255,0.25); }
.contact-icon {
    width: 36px; height: 36px;
    background: rgba(30,91,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; color: var(--blue); }
.contact-label {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b7a9d;
    margin-bottom: 4px;
}
.contact-value {
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}
.contact-value a {
    color: var(--blue);
    text-decoration: none;
}
.contact-value a:hover { text-decoration: underline; }

.back-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7a9d;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
    text-decoration: none;
}
.back-top:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(30,91,255,0.04);
}
.back-top svg { width: 14px; height: 14px; }

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .terms-layout { grid-template-columns: 220px 1fr; gap: 28px; }
    .terms-section { padding: 28px 30px; }
    .contacts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .terms-layout { grid-template-columns: 1fr; }
    .terms-toc { position: static; }
    .toc-card { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .terms-layout { padding: 32px 0 60px; gap: 20px; }
    .terms-section { padding: 22px 20px; border-radius: 16px; }
    .ts-title { font-size: 1rem; }
    .page-hero { padding: 52px 0 60px; }
    .contacts-grid { grid-template-columns: 1fr; }
    .def-table { font-size: 0.8rem; }
    .def-table td, .def-table th { padding: 9px 12px; }
}