/* メインコンテンツ */
.main-container {
    max-width: 800px;
    margin: 8rem auto 2rem;
    padding: 0 2rem;
}

.content {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 情報ボックス */
.info-box {
    background-color: rgba(79, 70, 229, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.info-box p {
    margin-bottom: 0.5rem;
}

/* 更新日 */
.update-info {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* お問い合わせセクション */
.contact-section {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.contact-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 0;
}

/* --- 要約セクション --- */
.summary-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
}

.summary-section h2 {
    border: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Privacy Policy用のスタイル */
.summary-section.privacy-summary {
    text-align: center;
}

.privacy-summary-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.privacy-summary-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.privacy-checkmark {
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Terms of Service用のスタイル */
.terms-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.terms-summary-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.terms-summary-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.terms-summary-item ul {
    padding-left: 1rem;
    margin: 0;
}

.terms-summary-item li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-container {
        padding: 0 1rem;
        margin: 7rem auto 2rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .privacy-summary-list {
        text-align: left;
    }

    .terms-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-container {
        margin: 6rem auto 2rem;
    }

    .content {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .contact-section {
        padding: 1.5rem;
    }
}
