/* ===========================
   Sefuma Legal Pages Stylesheet
   Privacy Policy & Terms of Service
   =========================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   Back Navigation
   =========================== */

.back-navigation {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #fff;
    transform: translateX(-2px);
}

.back-arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ===========================
   Header
   =========================== */

.legal-header {
    padding: 80px 24px 40px;
    text-align: center;
    border-bottom: 1px solid #3a3a3a;
}

.legal-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.legal-logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.legal-subtitle {
    font-size: 16px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

/* ===========================
   Main Content
   =========================== */

.legal-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 80px;
    flex: 1;
}

h1 {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.last-updated {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-style: italic;
}

/* ===========================
   Legal Sections
   =========================== */

.legal-section {
    margin-bottom: 48px;
}

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

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 40px;
    line-height: 1.3;
}

h2:first-of-type {
    margin-top: 0;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 12px;
    margin-top: 24px;
    line-height: 1.4;
}

p {
    margin-bottom: 16px;
    color: #e0e0e0;
    font-size: 16px;
}

p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Lists
   =========================== */

ul {
    margin: 16px 0 16px 24px;
    padding-left: 20px;
}

li {
    margin-bottom: 12px;
    color: #e0e0e0;
    line-height: 1.6;
}

li:last-child {
    margin-bottom: 0;
}

li strong {
    color: #fff;
}

/* ===========================
   Links
   =========================== */

a {
    color: #8B6F47;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #A0826D;
    text-decoration: underline;
}

/* ===========================
   Special Elements
   =========================== */

code {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #d4af37;
}

strong {
    font-weight: 600;
    color: #fff;
}

em {
    font-style: italic;
    color: #b0b0b0;
}

.contact-info {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.acceptance-notice {
    background-color: rgba(139, 111, 71, 0.1);
    border: 2px solid #8B6F47;
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
    text-align: center;
}

.acceptance-notice p {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

/* ===========================
   Cookie Table
   =========================== */

.cookie-table {
    margin: 24px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #333;
}

th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #4a4a4a;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #3a3a3a;
}

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

tbody tr:hover {
    background-color: #2d2d2d;
}

/* ===========================
   Footer
   =========================== */

.legal-footer {
    background-color: #2a2a2a;
    border-top: 1px solid #3a3a3a;
    padding: 32px 24px;
    text-align: center;
}

.legal-footer p {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    color: #8B6F47;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #A0826D;
    text-decoration: underline;
}

.separator {
    color: #4a4a4a;
    margin: 0 4px;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .legal-content {
        padding: 40px 32px 64px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 17px;
    }

    .legal-logo {
        width: 160px;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .back-navigation {
        top: 12px;
        left: 12px;
        right: 12px;
        margin-bottom: 24px;
    }

    .back-link {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
    }

    .legal-header {
        padding: 60px 16px 24px;
    }

    .legal-logo {
        width: 140px;
    }

    .legal-subtitle {
        font-size: 14px;
    }

    .legal-content {
        padding: 32px 16px 64px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
        margin-top: 32px;
    }

    h3 {
        font-size: 16px;
        margin-top: 20px;
    }

    p, li {
        font-size: 15px;
    }

    ul {
        margin-left: 16px;
        padding-left: 16px;
    }

    .legal-section {
        margin-bottom: 40px;
    }

    .contact-info {
        padding: 16px;
    }

    .acceptance-notice {
        padding: 20px;
    }

    .acceptance-notice p {
        font-size: 16px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px 12px;
    }

    .legal-footer {
        padding: 24px 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .separator {
        display: none;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    body {
        background-color: white;
        color: black;
    }

    .back-navigation,
    .legal-footer {
        display: none;
    }

    .legal-header {
        border-bottom: 2px solid #000;
    }

    .legal-logo {
        filter: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    h1, h2, h3, strong {
        color: #000;
    }

    code {
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        color: #000;
    }

    table {
        border: 2px solid #000;
        background-color: white;
    }

    th {
        background-color: #f0f0f0;
        border-bottom: 2px solid #000;
    }

    td {
        border-bottom: 1px solid #ccc;
    }
}

/* ===========================
   Accessibility
   =========================== */

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #8B6F47;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
}

.skip-to-main:focus {
    top: 0;
}

/* Focus indicators */
a:focus,
button:focus {
    outline: 2px solid #8B6F47;
    outline-offset: 2px;
}

/* Ensure sufficient contrast for links */
@media (prefers-contrast: high) {
    a {
        color: #d4af37;
    }

    a:hover {
        color: #ffd700;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
