/* ==========================================================================
   Privacy Policy - MGFactory Design System Integration
   サイト全体のデザインシステムと統一されたプライバシーポリシースタイル
   ========================================================================== */

/* プライバシーポリシーセクション - メインシステム適用 */
.privacy-policy-section {
    background: var(--bg-white);
    color: var(--text-on-light-primary);
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    padding: 140px 0 4rem 0; /* 固定ナビゲーションヘッダーのクリアランス確保 */
    min-height: 100vh;
    font-size: 16px; /* アクセシビリティのためのベースフォントサイズ */
}

/* コンテナ */
.privacy-policy-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ヘッダー部分 */
.privacy-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.privacy-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-on-light-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.privacy-title i {
    color: var(--brand-primary);
    font-size: 2rem;
}

.privacy-subtitle {
    font-size: 1.2rem;
    color: var(--text-on-light-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* メタ情報エリア */
.privacy-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.privacy-updated {
    font-size: 0.95rem;
    color: var(--text-on-light-tertiary);
    font-weight: 400;
    margin: 0;
}

.privacy-certifications {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--brand-primary);
}

.certification-badge {
    height: 32px;
    width: auto;
}

.certification-note {
    font-size: 0.85rem;
    color: var(--text-on-light-secondary);
    font-weight: 500;
}

/* メインコンテンツ */
.privacy-content {
    max-width: none;
}

/* セクション */
.privacy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.privacy-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* 見出し */
.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-on-light-primary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    padding-bottom: 0.5rem;
}

.privacy-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-on-light-secondary);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    line-height: 1.4;
}

/* 段落 */
.privacy-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-on-light-primary); /* より高いコントラスト比でWCAG AA準拠 */
}

.privacy-section p strong {
    color: var(--text-on-light-primary);
    font-weight: 600;
}

/* リスト */
.privacy-list {
    margin: 1.5rem 0;
    padding-left: 0;
}

.privacy-list.numbered {
    counter-reset: list-counter;
    list-style: none;
}

.privacy-list.numbered li {
    counter-increment: list-counter;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
}

.privacy-list.numbered li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--text-on-light-secondary);
}

/* テーブル */
.privacy-table-container,
.contact-info {
    margin: 2rem 0;
    overflow-x: auto;
}

.privacy-table,
.contact-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.privacy-table th,
.privacy-table td,
.contact-table th,
.contact-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.privacy-table th,
.contact-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text-on-light-primary);
}

.privacy-table td,
.contact-table td {
    color: var(--text-on-light-primary); /* テーブル内容も高コントラスト */
}

/* サブセクション */
.privacy-subsection {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--brand-primary);
}

.privacy-subsection h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* 署名・会社情報 */
.signature,
.company-signature {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.signature p,
.company-signature p {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-on-light-primary);
}

/* リンク */
.privacy-section a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.privacy-section a:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .privacy-policy-section {
        padding: 100px 0 3rem 0; /* モバイル用固定ヘッダークリアランス */
    }
    
    .privacy-policy-section .container {
        padding: 0 1.5rem;
    }
    
    .privacy-header {
        margin-bottom: 3rem;
    }
    
    .privacy-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .privacy-title i {
        font-size: 1.6rem;
    }
    
    .privacy-meta {
        gap: 0.8rem;
    }
    
    .privacy-certifications {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
        padding: 0.6rem 1rem;
    }
    
    .certification-badge {
        height: 28px;
    }
    
    .privacy-subtitle {
        font-size: 1.1rem;
    }
    
    .privacy-section h2 {
        font-size: 1.3rem;
    }
    
    .privacy-section h3 {
        font-size: 1.1rem;
    }
    
    .privacy-table th,
    .privacy-table td,
    .contact-table th,
    .contact-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .privacy-subsection {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

@media screen and (max-width: 480px) {
    .privacy-policy-section .container {
        padding: 0 1rem;
    }
    
    .privacy-title {
        font-size: 1.6rem;
        line-height: 1.3;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .privacy-title i {
        font-size: 1.4rem;
    }
    
    .privacy-certifications {
        padding: 0.5rem 0.8rem;
    }
    
    .certification-note {
        font-size: 0.8rem;
    }
    
    .certification-badge {
        height: 24px;
    }
    
    .privacy-section {
        margin-bottom: 2.5rem;
    }
    
    .privacy-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .privacy-section p {
        font-size: 0.95rem;
    }
    
    .privacy-list.numbered li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
    
    .privacy-table th,
    .privacy-table td,
    .contact-table th,
    .contact-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* 印刷用スタイル */
@media print {
    .privacy-policy-section {
        background: white;
        color: black;
    }
    
    .privacy-header {
        border-bottom: 2px solid #000;
    }
    
    .privacy-section {
        break-inside: avoid;
    }
    
    .privacy-section a {
        color: #000;
        text-decoration: underline;
    }
}