/* Legal Pages Design System */

:root {
    --brand-red: #F43722;
    --brand-red-hover: #D62F1D;
    --brand-purple: #9747FF;
    --bg-dark: #ffffff;
    --text-white: #ffffff;
    --text-dark: #232323;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
}

/* Wrapper for legal content */
.wrapper.legal {
    max-width: 1100px;
    margin: 120px auto 80px;
    padding: 60px;
    background: #ffffff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.legal h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.legal h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 2px;
}

.legal h5, .legal h6 {
    color: var(--bg-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #4B5563;
}

.legal .p {
    font-weight: 700;
    color: var(--bg-dark);
    margin-top: 2rem;
    display: block;
    font-size: 1.1rem;
}

.legal ol, .legal ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #4B5563;
}

.legal b, .legal strong {
    color: var(--bg-dark);
}

.legal a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal a:hover {
    color: var(--brand-red-hover);
    text-decoration: underline;
}

/* Table styling in Terms */
.legal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.legal th {
    background-color: #F9FAFB;
    color: var(--bg-dark);
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.legal td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: #4B5563;
}

.legal tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .wrapper.legal {
        margin: 100px 20px 40px;
        padding: 30px 20px;
    }
    
    .legal h2 {
        font-size: 1.8rem;
    }
}
