/**
 * DarMatch Privacy Policy page styles
 * Extends darmatch-cgu.css base styles + adds table styling
 */

/* ===== HERO (reuses dmh-cgu-hero from darmatch-home.css or inline) ===== */
.dmh-cgu-page { background: #ffffff; }

.dmh-cgu-hero {
    background: linear-gradient(135deg, #fff8ef 0%, #fef3e2 100%);
    padding: 100px 0 70px;
    text-align: center;
    border-bottom: 1px solid #f3e8d3;
}
.dmh-cgu-hero-inner { max-width: 820px; margin: 0 auto; }

.dmh-cgu-eyebrow {
    display: inline-block;
    background: rgba(232,147,26,0.12);
    color: #e8931a;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dmh-cgu-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 52px;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.dmh-cgu-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #e8931a;
    font-weight: 600;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dmh-cgu-intro {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ===== CONTENT LAYOUT ===== */
.dmh-cgu-content { padding: 80px 0 100px; }
.dmh-cgu-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sticky TOC */
.dmh-cgu-toc {
    position: sticky;
    top: 100px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 28px 24px;
}
.dmh-cgu-toc h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.dmh-cgu-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}
.dmh-cgu-toc ol li {
    counter-increment: toc;
    margin-bottom: 4px;
}
.dmh-cgu-toc ol li a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.dmh-cgu-toc ol li a::before {
    content: counter(toc);
    flex-shrink: 0;
    font-weight: 700;
    color: #e8931a;
    min-width: 18px;
    font-size: 12px;
}
.dmh-cgu-toc ol li:first-child a::before {
    content: "";
    min-width: 0;
}
.dmh-cgu-toc ol li a:hover {
    background: #ffffff;
    color: #1a1a1a !important;
    text-decoration: none !important;
}

/* Articles */
.dmh-cgu-articles { max-width: 100%; }
.dmh-cgu-article {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
    padding-bottom: 48px;
    border-bottom: 1px solid #f3f4f6;
}
.dmh-cgu-article:last-of-type { border-bottom: none; }

.dmh-cgu-article h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 30px;
    color: #1a1a1a;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    line-height: 1.25;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.dmh-cgu-num {
    color: #e8931a;
    font-weight: 800;
    flex-shrink: 0;
}
.dmh-cgu-article h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: #1a1a1a;
    margin: 28px 0 12px;
    letter-spacing: -0.01em;
}
.dmh-cgu-article p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 16px;
}
.dmh-cgu-article ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.dmh-cgu-article ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}
.dmh-cgu-article ul li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8931a;
}
.dmh-cgu-article strong { color: #1a1a1a; font-weight: 600; }
.dmh-cgu-article a { color: #e8931a; text-decoration: underline; font-weight: 500; }
.dmh-cgu-article a:hover { color: #d68316; }

.dmh-cgu-note {
    background: #fff8ef;
    border-left: 4px solid #e8931a;
    padding: 16px 20px !important;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #6b7280 !important;
    font-size: 15px !important;
}

/* ===== TABLES ===== */
.dmh-privacy-table {
    margin: 16px 0 24px;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}
.dmh-privacy-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}
.dmh-privacy-table thead th {
    background: #f9fafb;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid #e8931a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.dmh-privacy-table tbody td {
    padding: 12px 18px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    line-height: 1.6;
    vertical-align: top;
}
.dmh-privacy-table tbody tr:last-child td {
    border-bottom: none;
}
.dmh-privacy-table tbody tr:hover {
    background: #fefcf8;
}
.dmh-privacy-table tbody td:first-child {
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Contact box */
.dmh-cgu-contact-box {
    margin-top: 60px;
    padding: 56px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 24px;
    text-align: center;
    color: #ffffff;
}
.dmh-cgu-contact-box h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 28px;
    margin: 0 0 12px;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.dmh-cgu-contact-box p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 24px;
}
.dmh-cgu-contact-box .dmh-btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: #e8931a;
    color: #ffffff !important;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.dmh-cgu-contact-box .dmh-btn-primary:hover {
    background: #d68316;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(232,147,26,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .dmh-cgu-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dmh-cgu-toc {
        position: relative;
        top: 0;
    }
}
@media (max-width: 768px) {
    .dmh-cgu-hero { padding: 70px 0 50px; }
    .dmh-cgu-hero h1 { font-size: 32px; }
    .dmh-cgu-intro { font-size: 15px; }
    .dmh-cgu-content { padding: 60px 0 80px; }
    .dmh-cgu-article h2 { font-size: 24px; }
    .dmh-cgu-article h3 { font-size: 17px; }
    .dmh-cgu-article p,
    .dmh-cgu-article ul li { font-size: 15px; }
    .dmh-privacy-table table { font-size: 14px; }
    .dmh-privacy-table thead th { padding: 10px 12px; font-size: 12px; }
    .dmh-privacy-table tbody td { padding: 10px 12px; }
    .dmh-privacy-table tbody td:first-child { white-space: normal; }
    .dmh-cgu-contact-box { padding: 40px 24px; }
    .dmh-cgu-contact-box h3 { font-size: 22px; }
}
