/* ================================================
   LEGAL PAGES STYLES
   TheSun Events & Culture
   ================================================ */

/* Base Reset for Legal Pages */
.legal-page,
.legal-page * {
    box-sizing: border-box;
}

/* ================================================
   NAVIGATION
   ================================================ */
.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 40px;
    background-color: var(--white);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-logo {
    display: block;
}

.legal-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--red);
}

.back-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* ================================================
   MAIN CONTENT AREA
   ================================================ */
.legal-page {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    padding-left: 24px;
    padding-right: 24px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
}

.legal-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* ================================================
   PAGE HEADER
   ================================================ */
.legal-container h1 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -1px;
    margin: 0 0 12px 0;
    color: var(--black);
    line-height: 1.2;
    text-align: left;
}

.last-updated {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gray-light);
    margin: 0 0 48px 0;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

/* ================================================
   LEGAL CONTENT
   ================================================ */
.legal-content {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.9;
}

/* Section Titles */
.legal-content h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 48px 0 16px 0;
    padding-top: 24px;
    color: var(--black);
    letter-spacing: 0.3px;
    line-height: 1.4;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Subsection Titles */
.legal-content h3 {
    font-size: 12px;
    font-weight: 600;
    margin: 28px 0 12px 0;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

/* Paragraphs */
.legal-content p {
    font-size: 14px;
    color: #555555;
    margin: 0 0 16px 0;
    font-weight: 400;
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Lists */
.legal-content ul {
    margin: 16px 0 24px 0;
    padding: 0 0 0 24px;
    list-style-type: none;
}

.legal-content li {
    font-size: 14px;
    color: #555555;
    margin: 0 0 10px 0;
    font-weight: 400;
    line-height: 1.8;
    position: relative;
    padding-left: 16px;
}

.legal-content li::before {
    content: "—";
    position: absolute;
    left: -8px;
    color: var(--gray-light);
}

/* Links */
.legal-content a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--black);
    padding-bottom: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.legal-content a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Contact Info Box */
.contact-info {
    background-color: #f9f9f9;
    padding: 24px 28px;
    margin: 20px 0 24px 0;
    border-left: 3px solid var(--black);
    line-height: 1.8;
}

.contact-info strong {
    font-weight: 600;
    color: var(--black);
}

.contact-info a {
    border-bottom: 1px solid var(--black);
}

.contact-info a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ================================================
   COOKIE TABLE
   ================================================ */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px 0;
    font-size: 13px;
    background-color: #fafafa;
    border-radius: 4px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
}

.cookie-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 10px;
    color: var(--gray-dark);
    background-color: #f0f0f0;
}

.cookie-table td {
    color: #555555;
    font-weight: 400;
    line-height: 1.5;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

/* ================================================
   COOKIE PREFERENCES BOX (on cookies.html)
   ================================================ */
.cookie-preferences-box {
    background-color: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0 32px 0;
    text-align: center;
}

.cookie-pref-status {
    margin-bottom: 16px;
}

.cookie-pref-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-light);
    display: block;
    margin-bottom: 8px;
}

.cookie-pref-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-dark);
}

.cookie-pref-value.active {
    color: var(--black);
}

.manage-cookies-btn {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.manage-cookies-btn:hover {
    background-color: var(--red);
}

/* ================================================
   SIMPLE FOOTER
   ================================================ */
.legal-footer-simple {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background-color: var(--white);
}

.legal-footer-simple p {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gray-light);
    font-weight: 400;
    margin: 0;
}

/* ================================================
   RESPONSIVE - TABLET (768px)
   ================================================ */
@media (max-width: 768px) {
    .legal-nav {
        padding: 20px 24px;
    }
    
    .back-link {
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .back-link svg {
        width: 16px;
        height: 16px;
    }
    
    .legal-logo img {
        height: 40px;
    }
    
    .legal-page {
        padding-top: 110px;
        padding-bottom: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .legal-container h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    
    .last-updated {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 36px;
        padding-bottom: 24px;
    }
    
    .legal-content h2 {
        font-size: 15px;
        margin: 40px 0 14px 0;
        padding-top: 20px;
    }
    
    .legal-content h3 {
        font-size: 11px;
        margin: 24px 0 10px 0;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 13px;
        line-height: 1.85;
    }
    
    .legal-content ul {
        padding-left: 20px;
    }
    
    .legal-content li {
        padding-left: 14px;
    }
    
    .contact-info {
        padding: 20px 22px;
    }
    
    .cookie-table {
        font-size: 12px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 12px 14px;
    }
    
    .cookie-table th {
        font-size: 9px;
    }
}

/* ================================================
   RESPONSIVE - MOBILE (480px)
   ================================================ */
@media (max-width: 480px) {
    .legal-nav {
        padding: 16px;
    }
    
    .back-link {
        font-size: 9px;
        letter-spacing: 1.5px;
        gap: 6px;
    }
    
    .back-link svg {
        width: 14px;
        height: 14px;
    }
    
    .legal-logo img {
        height: 32px;
    }
    
    .legal-page {
        padding-top: 90px;
        padding-bottom: 48px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .legal-container h1 {
        font-size: 26px;
        letter-spacing: -0.3px;
        margin-bottom: 10px;
    }
    
    .last-updated {
        font-size: 9px;
        letter-spacing: 1.5px;
        margin-bottom: 28px;
        padding-bottom: 20px;
    }
    
    .legal-content h2 {
        font-size: 14px;
        margin: 32px 0 12px 0;
        padding-top: 16px;
    }
    
    .legal-content h3 {
        font-size: 10px;
        letter-spacing: 1.2px;
        margin: 20px 0 8px 0;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 12px;
        line-height: 1.8;
    }
    
    .legal-content p {
        margin-bottom: 14px;
    }
    
    .legal-content ul {
        margin: 14px 0 20px 0;
        padding-left: 16px;
    }
    
    .legal-content li {
        padding-left: 12px;
        margin-bottom: 8px;
    }
    
    .legal-content li::before {
        left: -6px;
    }
    
    .contact-info {
        padding: 16px 18px;
        margin: 16px 0 20px 0;
    }
    
    .cookie-table {
        font-size: 11px;
        margin: 20px 0 24px 0;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
    }
    
    .cookie-table th {
        font-size: 8px;
        letter-spacing: 1px;
    }
    
    .legal-footer-simple {
        padding: 24px 16px;
    }
    
    .legal-footer-simple p {
        font-size: 9px;
        letter-spacing: 2px;
    }
}

/* ================================================
   EXTRA SMALL SCREENS (360px)
   ================================================ */
@media (max-width: 360px) {
    .legal-container h1 {
        font-size: 22px;
    }
    
    .legal-content h2 {
        font-size: 13px;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 11px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }
}
