/* Terms of Service Page Specific Styles */

/* Terms Hero */
.terms-hero {
    padding: 10rem 2rem 4rem;
    background: var(--bg-surface);
    border-bottom: var(--border-comic);
    text-align: center;
}

.terms-hero .hero-title {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.terms-hero .hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.terms-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.terms-nav-link {
    padding: 0.5rem 1rem;
    background: var(--bg-base);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.terms-nav-link:hover {
    background: var(--bg-subtle);
    border-color: var(--text-secondary);
}

.terms-nav-link.highlight {
    background: var(--rust);
    color: var(--text-inverse);
    border-color: var(--rust-dark);
}

.terms-nav-link.highlight:hover {
    background: var(--rust-light);
}

/* Notice Banner */
.notice-banner {
    background: linear-gradient(135deg, #FFE8D6 0%, #FFF3D6 100%);
    border-bottom: var(--border-comic);
    padding: 2rem;
}

.notice-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border: var(--border-comic);
    border-radius: 12px;
    box-shadow: var(--shadow-comic);
}

.notice-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rust);
    color: var(--text-inverse);
    border-radius: 8px;
    flex-shrink: 0;
}

.notice-text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--rust);
    margin-bottom: 0.5rem;
}

.notice-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Terms Content */
.terms-content {
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-base);
}

.terms-content .section-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    max-width: 1200px;
}

/* Terms Body */
.terms-body {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.terms-article {
    background: var(--bg-surface);
    border: 3px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.terms-article.highlight-section {
    border-color: var(--rust);
    box-shadow: var(--shadow-comic);
}

.highlight-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 0.25rem 0.75rem;
    background: var(--rust);
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.terms-article h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--rust);
    margin: 1.5rem 0 0.75rem;
}

.terms-article h3:first-of-type {
    margin-top: 0;
}

.terms-article p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.terms-article p:last-child {
    margin-bottom: 0;
}

.terms-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.terms-list li strong {
    color: var(--text-primary);
}

.terms-list.numbered {
    list-style-type: decimal;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #FFE8D6 0%, #FFF3D6 100%);
    border: 2px solid var(--rust);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.highlight-box h3 {
    margin-top: 0 !important;
}

.highlight-box .terms-list li {
    color: var(--text-primary);
}

/* Sidebar */
.terms-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, #E6F4E8 0%, #D6E8DA 100%);
    border-color: var(--success);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--rust);
    margin-bottom: 1rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li::before {
    content: '•';
    color: var(--rust);
    font-weight: bold;
}

.sidebar-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Agreement Section */
.agreement-section {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--bg-surface);
    border-top: var(--border-comic);
}

.agreement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.agreement-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.agreement-date {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .terms-content .section-container {
        grid-template-columns: 1fr;
    }

    .terms-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .terms-hero .hero-title {
        font-size: 2.5rem;
    }

    .terms-nav {
        gap: 0.5rem;
    }

    .terms-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.625rem;
    }

    .notice-content {
        flex-direction: column;
        text-align: center;
    }

    .notice-icon {
        margin: 0 auto;
    }

    .terms-article {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .sidebar-card {
        min-width: 100%;
    }
}
