:root {
    --maroon: #70181f;
    --green: #427d3a;
    --black: #000000;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --text-gray: #555555;
    --border-light: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-gray);
    background: #fafafa;
    overflow-x: hidden;
}

/* Hero Section (shared style) */
.leadership-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.68)), url(../assets/image/bg.webp) center / cover;
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
}

.leadership-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 30px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Effective-date strip */
.legal-meta-strip {
    background: var(--white);
    margin: -50px auto 0;
    max-width: 1100px;
    position: relative;
    z-index: 20;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 22px 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    align-items: center;
    justify-content: space-between;
}

.legal-meta-strip span {
    font-size: 0.92rem;
    color: var(--text-gray);
}

.legal-meta-strip strong {
    color: var(--black);
}

/* Main legal layout */
.legal-section {
    padding: 70px 0 90px;
    background: var(--white);
}

.legal-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* Table of contents */
.legal-toc {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
}

.legal-toc h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-toc ol li {
    counter-increment: toc;
}

.legal-toc ol li a {
    display: flex;
    gap: 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    transition: color .2s;
}

.legal-toc ol li a::before {
    content: counter(toc);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-toc ol li a:hover {
    color: var(--maroon);
}

/* Body content */
.legal-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    margin: 0 0 14px;
    padding-top: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-body h2 .legal-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--maroon);
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-clause {
    margin-bottom: 42px;
    scroll-margin-top: 100px;
}

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

.legal-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.legal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 14px;
}

.legal-body ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    padding-left: 26px;
    position: relative;
    margin-bottom: 10px;
}

.legal-body ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

.legal-highlight {
    background: var(--light-bg);
    border-left: 5px solid var(--maroon);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
    font-size: 0.96rem;
    color: var(--black);
}

.legal-gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 0.94rem;
}

.legal-body table th,
.legal-body table td {
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    text-align: left;
}

.legal-body table th {
    background: var(--light-bg);
    color: var(--black);
    font-weight: 700;
}

.legal-contact-box {
    background: var(--black);
    border-radius: 16px;
    padding: 36px 32px;
    color: var(--white);
    margin-top: 50px;
}

.legal-contact-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.legal-contact-box p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.legal-contact-box a {
    color: #ffad80;
    text-decoration: none;
}

.legal-contact-box a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .legal-wrap {
        grid-template-columns: 1fr;
    }
    .legal-toc {
        position: static;
    }
}

@media (max-width: 576px) {
    .legal-meta-strip {
        margin: -36px 16px 0;
        padding: 18px 20px;
    }
    .legal-section {
        padding: 50px 0 60px;
    }
}
