.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(108, 117, 125, 0.1);
}

.legal-header h1 {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.dark-theme .legal-header h1 {
    color: #fff;
}

.legal-update-date {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

.legal-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dark-theme .legal-content {
    background: rgba(30, 30, 40, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(108, 117, 125, 0.15);
    position: relative;
}

.dark-theme .legal-section h2 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.legal-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.legal-section h3 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
}

.dark-theme .legal-section h3 {
    color: rgba(255, 255, 255, 0.9);
}

.legal-section p {
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    line-height: 2;
    color: #555;
    margin-bottom: 1rem;
    text-align: justify;
}

.dark-theme .legal-section p {
    color: rgba(255, 255, 255, 0.75);
}

.legal-section ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: none;
}

.legal-section ul li {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    line-height: 2;
    color: #555;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.dark-theme .legal-section ul li {
    color: rgba(255, 255, 255, 0.75);
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.legal-section ul li ul {
    margin: 0.5rem 0 0.5rem 1rem;
}

.legal-section ul li ul li::before {
    content: '○';
    color: #764ba2;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.dark-theme .legal-section a {
    color: #a8b4f5;
    border-bottom-color: rgba(168, 180, 245, 0.3);
}

.dark-theme .legal-section a:hover {
    color: #c8b4f5;
    border-bottom-color: #c8b4f5;
}

.notice-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    margin: 1.5rem 0;
}

.dark-theme .notice-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.08));
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content p {
    margin: 0;
    font-size: 0.95rem;
}

.third-party-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tp-item {
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(108, 117, 125, 0.1);
}

.dark-theme .tp-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.tp-item h4 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.dark-theme .tp-item h4 {
    color: #fff;
}

.tp-item p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.ci-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dark-theme .ci-item {
    background: rgba(255, 255, 255, 0.03);
}

.ci-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.ci-item i {
    font-size: 1.25rem;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.dark-theme .ci-item i {
    color: #a8b4f5;
}

.ci-item span {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    color: #555;
}

.dark-theme .ci-item span {
    color: rgba(255, 255, 255, 0.75);
}

.ip-section {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ip-item {
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(108, 117, 125, 0.1);
}

.dark-theme .ip-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.ip-item h4 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.dark-theme .ip-item h4 {
    color: #fff;
}

.ip-item p {
    margin: 0;
    font-size: 0.9rem;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dg-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(108, 117, 125, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
}

.dark-theme .dg-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.dg-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-4px);
}

.dg-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dg-item h4 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.dark-theme .dg-item h4 {
    color: #fff;
}

.dg-item p {
    margin: 0;
    font-size: 0.85rem;
    text-align: center;
}

.special-notice {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border-radius: 16px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    text-align: center;
}

.dark-theme .special-notice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-color: rgba(102, 126, 234, 0.3);
}

.special-notice p {
    margin-bottom: 1rem;
    text-align: center;
}

.special-notice p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #667eea;
}

.dark-theme .special-notice p:last-child {
    color: #a8b4f5;
}

.legal-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(108, 117, 125, 0.1);
}

.dark-theme .legal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.legal-footer p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.legal-footer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 6rem 1.5rem 3rem;
    }

    .legal-header h1 {
        font-size: 2.2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .disclaimer-grid {
        grid-template-columns: 1fr;
    }

    .notice-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
