/* ===== CSS Variables ===== */
:root {
    --red: #ef4850; --red-dark: #d43d45; --red-light: #fef0f0;
    --blue: #2c99d4; --blue-light: #eff6ff;
    --black: #1a1a1a; --gray-50: #f8fafb; --gray-100: #f5f5f5;
    --gray-200: #e5e5e5; --gray-300: #d4d4d4; --gray-400: #a3a3a3;
    --gray-500: #737373; --gray-600: #404040; --white: #fff;
    --green: #16a34a; --green-light: #f0fdf4;
    --purple: #8b5cf6; --orange: #f97316;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
}

/* ===== HERO ===== */
.tos-hero {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--blue-light) 100%);
    padding: 3.5rem 0 3rem; text-align: center; position: relative; overflow: hidden;
}
.tos-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(circle, #000 1px, transparent 1px); background-size: 20px 20px; }
.tos-hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: var(--white); border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; color: var(--red); margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.tos-hero-title { font-size: 2.25rem; font-weight: 800; color: var(--black); margin-bottom: 0.75rem; }
@media(min-width:768px){.tos-hero-title{font-size:3rem}}
.text-gradient { background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tos-hero-subtitle { font-size: 1rem; color: var(--gray-500); max-width: 550px; margin: 0 auto; }

/* ===== NAVIGATION ===== */
.tos-nav-section { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 76px; z-index: 50; }
.tos-nav { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tos-nav::-webkit-scrollbar { display: none; }
.nav-label { font-size: 0.75rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.nav-link { padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 500; color: var(--gray-500); text-decoration: none; border-radius: 9999px; white-space: nowrap; transition: all 0.2s; }
.nav-link:hover { background: var(--red-light); color: var(--red); }

/* ===== CONTENT ===== */
.tos-content-section { padding: 3rem 0 5rem; background: var(--gray-50); }
.tos-content { max-width: 800px; margin: 0 auto; }
.tos-intro { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 2rem; margin-bottom: 1.5rem; }
.intro-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-light); display: flex; align-items: center; justify-content: center; color: var(--red); margin-bottom: 1rem; }
.tos-intro p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; }
.intro-warning { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1.25rem; padding: 1rem; background: #fefce8; border: 1px solid #fde68a; border-radius: 12px; font-size: 0.875rem; color: #b45309; }
.intro-warning svg { flex-shrink: 0; margin-top: 1px; }

/* ===== SECTIONS ===== */
.tos-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 2rem; margin-bottom: 1.5rem; transition: all 0.3s; }
.tos-section:hover { box-shadow: var(--shadow-md); }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--red-light); }
.section-number { font-size: 1.5rem; font-weight: 800; color: var(--red); opacity: 0.3; }
.section-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--black); }
.section-body p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.25rem; }
.section-body p:last-child { margin-bottom: 0; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { padding: 1rem; background: var(--blue-light); border: 1px solid #bfdbfe; border-radius: 14px; margin: 1rem 0; font-size: 0.9375rem; color: #1e40af; line-height: 1.6; }
.highlight-box strong { color: #1e3a8a; }

/* ===== WARNING CARD ===== */
.warning-card { display: flex; gap: 1rem; padding: 1.25rem; background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px; margin: 1rem 0; }
.warning-card svg { color: #dc2626; flex-shrink: 0; margin-top: 2px; }
.warning-card div { flex: 1; }
.warning-card strong { color: #991b1b; display: block; margin-bottom: 0.5rem; }
.warning-card p { font-size: 0.875rem; color: #7f1d1d; line-height: 1.6; margin-bottom: 0; }

/* ===== TOS LIST ===== */
.tos-list { list-style: none; margin: 1rem 0 1.25rem 0; }
.tos-list li { display: flex; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }
.tos-list li:before { content: "•"; color: var(--red); font-weight: bold; min-width: 1.5rem; }

/* ===== CONTACT SECTION ===== */
.tos-contact-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 2rem; margin-bottom: 1.5rem; }
.tos-contact-section h3 { font-size: 1.25rem; font-weight: 700; color: var(--black); margin-bottom: 0.5rem; }
.tos-contact-section > p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.5rem; }

/* ===== CONTACT METHODS ===== */
.contact-methods { margin-bottom: 1rem; }
.contact-method-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem; background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 14px; text-decoration: none; transition: all 0.3s;
}
.contact-method-card:hover { border-color: var(--red); background: var(--white); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.cm-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-light); display: flex; align-items: center; justify-content: center; color: var(--red); }
.cm-label { display: block; font-size: 0.75rem; color: var(--gray-400); }
.cm-value { font-size: 1rem; font-weight: 700; color: var(--black); }
.contact-method-card > svg { color: var(--gray-400); margin-left: auto; }

/* ===== FOOTER ===== */
.tos-footer { text-align: center; padding: 1.5rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; font-size: 0.875rem; color: var(--gray-500); }
.tos-footer strong { color: var(--black); }
.tos-footer p { margin-bottom: 0.5rem; }
.tos-footer p:last-child { margin-bottom: 0; }

@media(max-width:640px){
    .tos-hero-title{font-size:1.75rem}
    .tos-section{padding:1.25rem}
    .section-header { flex-direction: column; align-items: flex-start; }
    .section-number { font-size: 1.25rem; }
}
