/* ============================================
   LEGAL.CSS - Legal Pages (Privacy, Terms, Cookies)
   Color Palette: Rose Gold #b76e79, Burgundy #6b2737, Cream #fdf5f0, Blush Pink #d4a5a5
   ============================================ */

/* ============================================
   LEGAL PAGE LAYOUT
   ============================================ */

.legal-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: calc(100vh - 400px);
}

/* ============================================
   LEGAL SIDEBAR
   ============================================ */

.legal-sidebar {
    position: relative;
}

.legal-sidebar-inner {
    position: sticky;
    top: 100px;
    background: var(--cream);
    background: #fdf5f0;
    padding: 30px 25px;
    border-radius: 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.legal-sidebar h3 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--blush-pink);
    border-bottom: 2px solid #d4a5a5;
}

.legal-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav li {
    margin-bottom: 5px;
}

.legal-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.legal-nav a:hover {
    background: rgba(183, 110, 121, 0.1);
    color: var(--rose-gold);
    color: #b76e79;
}

.legal-nav a.active {
    background: var(--rose-gold);
    background: #b76e79;
    color: #fff;
}

.legal-nav a .number {
    width: 28px;
    height: 28px;
    background: var(--blush-pink);
    background: #d4a5a5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.legal-nav a:hover .number {
    background: var(--rose-gold);
    background: #b76e79;
    color: #fff;
}

.legal-nav a.active .number {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ============================================
   LEGAL CONTENT AREA
   ============================================ */

.legal-content {
    max-width: 800px;
}

.legal-content-header {
    margin-bottom: 50px;
}

.legal-content-header h1 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
}

.legal-content-header .last-updated {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   LEGAL SECTIONS
   ============================================ */

.legal-section {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 5px 30px rgba(107, 39, 55, 0.08);
    scroll-margin-top: 120px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--blush-pink);
    background: #d4a5a5;
    color: #fff;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.legal-section h2 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-section h3 {
    color: var(--rose-gold);
    color: #b76e79;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 30px 0 15px;
}

.legal-section h4 {
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    margin: 20px 0 10px;
}

.legal-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 20px 25px;
}

.legal-section li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-section a {
    color: var(--rose-gold);
    color: #b76e79;
    text-decoration: none;
    border-bottom: 1px dotted var(--rose-gold);
    border-bottom: 1px dotted #b76e79;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: var(--burgundy);
    color: #6b2737;
    border-bottom-style: solid;
}

/* ============================================
   SPECIAL BOXES
   ============================================ */

.intro-box,
.highlight-box,
.warning-box,
.info-box {
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    line-height: 1.8;
}

.intro-box {
    background: var(--cream);
    background: #fdf5f0;
    border-left: 4px solid var(--rose-gold);
    border-left: 4px solid #b76e79;
}

.intro-box strong {
    color: var(--burgundy);
    color: #6b2737;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.1), rgba(212, 165, 165, 0.1));
    border-left: 4px solid var(--rose-gold);
    border-left: 4px solid #b76e79;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: rgba(192, 57, 43, 0.08);
    border-left: 4px solid #c0392b;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.warning-box strong {
    color: #c0392b;
}

.info-box {
    background: rgba(52, 152, 219, 0.08);
    border-left: 4px solid #3498db;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: #2980b9;
}

/* ============================================
   PURPOSE GRID
   ============================================ */

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.purpose-item {
    background: var(--cream);
    background: #fdf5f0;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.purpose-item .icon {
    width: 50px;
    height: 50px;
    background: var(--blush-pink);
    background: #d4a5a5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
}

.purpose-item h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1rem;
    margin-bottom: 10px;
}

.purpose-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   RIGHTS LIST
   ============================================ */

.rights-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.right-item {
    background: #fff;
    border: 2px solid var(--cream);
    border: 2px solid #fdf5f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.right-item:hover {
    border-color: var(--blush-pink);
    border-color: #d4a5a5;
    box-shadow: 0 5px 20px rgba(183, 110, 121, 0.1);
}

.right-item h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.right-item h4::before {
    content: '✓';
    width: 28px;
    height: 28px;
    background: var(--blush-pink);
    background: #d4a5a5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
}

.right-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   CONTACT METHODS GRID
   ============================================ */

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.contact-method {
    background: var(--cream);
    background: #fdf5f0;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
}

.contact-method .icon {
    width: 50px;
    height: 50px;
    background: var(--blush-pink);
    background: #d4a5a5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
}

.contact-method h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-method p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-method a {
    color: var(--rose-gold);
    color: #b76e79;
    text-decoration: none;
}

/* ============================================
   CONTACT INFO LEGAL
   ============================================ */

.contact-info-legal {
    background: var(--cream);
    background: #fdf5f0;
    padding: 40px;
    border-radius: 20px;
    margin: 30px 0;
}

.contact-info-legal h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid rgba(183, 110, 121, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    width: 150px;
    color: var(--burgundy);
    color: #6b2737;
    font-weight: 500;
    flex-shrink: 0;
}

.info-row .value {
    color: #555;
}

.info-row .value a {
    color: var(--rose-gold);
    color: #b76e79;
    text-decoration: none;
}

/* ============================================
   COOKIE TYPES GRID
   ============================================ */

.cookie-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.cookie-type {
    background: #fff;
    border: 2px solid var(--blush-pink);
    border: 2px solid #d4a5a5;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.cookie-type:hover {
    border-color: var(--rose-gold);
    border-color: #b76e79;
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.15);
}

.cookie-type h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-type .icon {
    width: 35px;
    height: 35px;
    background: var(--blush-pink);
    background: #d4a5a5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cookie-type p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-examples span {
    background: var(--cream);
    background: #fdf5f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* ============================================
   COOKIE TABLE
   ============================================ */

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(107, 39, 55, 0.08);
}

.cookie-table thead {
    background: var(--burgundy);
    background: #6b2737;
    color: #fff;
}

.cookie-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
}

.cookie-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(183, 110, 121, 0.1);
    color: #555;
}

.cookie-table tbody tr:hover {
    background: var(--cream);
    background: #fdf5f0;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table .cookie-name {
    font-weight: 500;
    color: var(--burgundy);
    color: #6b2737;
}

.cookie-table .duration {
    font-family: monospace;
    background: var(--cream);
    background: #fdf5f0;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ============================================
   BROWSER COOKIES LIST
   ============================================ */

.browser-cookies {
    margin: 30px 0;
}

.browser-cookies h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.browser-item {
    background: var(--cream);
    background: #fdf5f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.browser-item h5 {
    color: var(--rose-gold);
    color: #b76e79;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.browser-item ol {
    margin-left: 20px;
}

.browser-item li {
    margin-bottom: 10px;
    color: #555;
}

.browser-item li:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECURITY MEASURES GRID
   ============================================ */

.security-measures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.security-item {
    background: var(--cream);
    background: #fdf5f0;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
}

.security-item .shield-icon {
    width: 60px;
    height: 60px;
    background: var(--blush-pink);
    background: #d4a5a5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.security-item h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1rem;
    margin-bottom: 12px;
}

.security-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   SOCIAL INTEGRATIONS
   ============================================ */

.social-integrations {
    background: var(--cream);
    background: #fdf5f0;
    padding: 40px;
    border-radius: 20px;
    margin: 30px 0;
}

.social-integrations h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.social-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.social-platform {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-platform .platform-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.social-platform.facebook .platform-icon {
    background: #1877F2;
}

.social-platform.instagram .platform-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-platform.pinterest .platform-icon {
    background: #BD081C;
}

.social-platform.tiktok .platform-icon {
    background: #000;
}

.social-platform.twitter .platform-icon {
    background: #1DA1F2;
}

.social-platform .platform-info h5 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1rem;
    margin-bottom: 5px;
}

.social-platform .platform-info p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   RELATED LINKS
   ============================================ */

.related-links {
    margin: 30px 0;
}

.related-links h4 {
    color: var(--burgundy);
    color: #6b2737;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--cream);
    background: #fdf5f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-link:hover {
    background: var(--blush-pink);
    background: #d4a5a5;
    transform: translateX(5px);
}

.related-link .link-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.related-link span {
    color: var(--burgundy);
    color: #6b2737;
    font-weight: 500;
}

.related-link:hover span {
    color: #fff;
}

/* ============================================
   CTA BOX
   ============================================ */

.cta-box {
    background: linear-gradient(135deg, var(--burgundy), var(--rose-gold));
    background: linear-gradient(135deg, #6b2737, #b76e79);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    margin: 40px 0;
}

.cta-box h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-box .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #fff;
    color: var(--burgundy);
    color: #6b2737;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   LEGAL FOOTER
   ============================================ */

.legal-footer {
    background: var(--cream);
    background: #fdf5f0;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
}

.legal-footer p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.legal-footer a {
    color: var(--rose-gold);
    color: #b76e79;
    text-decoration: none;
}

.legal-footer a:hover {
    color: var(--burgundy);
    color: #6b2737;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */

@media (max-width: 992px) {
    .legal-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-sidebar-inner {
        position: static;
        max-height: none;
    }

    .legal-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .legal-nav li {
        margin-bottom: 0;
    }

    .legal-nav a {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .legal-nav a .number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .legal-section {
        padding: 35px;
    }

    .purpose-grid,
    .cookie-types {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 12px 15px;
    }

    .security-measures {
        grid-template-columns: 1fr;
    }

    .social-list {
        grid-template-columns: 1fr;
    }

    .related-links-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-legal .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-row .label {
        width: auto;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .legal-page {
        padding: 40px 15px;
    }

    .legal-content-header h1 {
        font-size: 1.8rem;
    }

    .legal-section {
        padding: 25px 20px;
    }

    .section-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .intro-box,
    .highlight-box,
    .warning-box,
    .info-box {
        padding: 20px;
    }

    .purpose-item,
    .cookie-type,
    .contact-method,
    .security-item {
        padding: 20px;
    }

    .browser-item {
        padding: 20px;
    }

    .social-integrations {
        padding: 25px 20px;
    }

    .social-platform {
        padding: 15px;
    }

    .cta-box {
        padding: 30px 25px;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

    .cta-box .cta-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .legal-footer {
        padding: 30px 20px;
    }

    /* Responsive cookie table */
    .cookie-table {
        display: block;
        overflow-x: auto;
    }

    .cookie-table thead {
        display: none;
    }

    .cookie-table tbody {
        display: block;
    }

    .cookie-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid rgba(183, 110, 121, 0.2);
        border-radius: 10px;
        overflow: hidden;
    }

    .cookie-table td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(183, 110, 121, 0.1);
    }

    .cookie-table td:last-child {
        border-bottom: none;
    }

    .cookie-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 500;
        color: var(--burgundy);
        color: #6b2737;
    }
}

@media (max-width: 480px) {
    .legal-sidebar-inner {
        padding: 20px;
    }

    .legal-nav a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .legal-nav a .number {
        margin-right: 8px;
    }

    .legal-content-header h1 {
        font-size: 1.5rem;
    }

    .legal-section h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .right-item {
        padding: 20px;
    }

    .contact-info-legal {
        padding: 25px 20px;
    }
}

/* ============================================
   MOBILE HOTFIXES (FINAL OVERRIDES)
   ============================================ */
@media (max-width: 768px) {
    .legal-page {
        overflow-x: hidden;
    }

    .legal-sidebar {
        overflow-x: auto;
    }

    .legal-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .legal-nav li {
        flex: 0 0 auto;
    }

    .legal-nav a {
        white-space: nowrap;
    }

    .legal-content-header,
    .legal-section,
    .legal-footer {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
