/* ============================================
   COOKIE POLICY PAGE STYLES
   OWANLY - Owan Language Learning Platform
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.cookies-hero {
    background: linear-gradient(135deg, var(--apple-emerald) 0%, var(--apple-emerald-light) 100%);
    padding: 8rem 1.5rem 4rem;
    text-align: center;
}

.cookies-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.cookies-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cookies-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cookies-divider {
    width: 100px;
    height: 4px;
    background: var(--apple-green);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.cookies-updated {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cookies-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 500;
}

/* ============================================
   COOKIE CONTENT
   ============================================ */
.cookies-content {
    padding: 4rem 1.5rem;
    background: var(--gray-50);
}

.cookies-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   COOKIE SECTIONS
   ============================================ */
.cookies-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition-fast);
}

.cookies-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cookies-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.section-number {
    color: var(--apple-emerald);
    font-weight: 800;
}

.cookies-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookies-section h3 i {
    color: var(--apple-emerald);
}

.cookies-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 1rem 0 0.5rem;
}

.cookies-section p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

/* ============================================
   COOKIE LISTS
   ============================================ */
.cookies-list {
    list-style: none;
    margin: 1rem 0;
}

.cookies-list li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    line-height: 1.5;
}

/* Bullet list */
.cookies-list-bullet li {
    padding-left: 1.5rem;
    position: relative;
}

.cookies-list-bullet li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background: var(--apple-green-dark);
    border-radius: 50%;
}

/* Check list */
.cookies-list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cookies-list-check li i {
    color: var(--apple-green-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ============================================
   COOKIE TYPE CARDS
   ============================================ */
.cookie-type-card {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.cookie-type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.cookie-type-icon {
    font-size: 2rem;
}

.cookie-type-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.cookie-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-required {
    background: var(--apple-emerald);
    color: var(--white);
}

.badge-preferences {
    background: var(--teal);
    color: var(--white);
}

.badge-analytics {
    background: var(--purple);
    color: var(--white);
}

.badge-none {
    background: var(--gray-400);
    color: var(--white);
}

.cookie-type-body {
    padding: 1.25rem;
}

.cookie-type-body p {
    margin-bottom: 1rem;
}

.cookie-type-body ul {
    list-style: none;
    margin: 0.5rem 0 1rem;
}

.cookie-type-body ul li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
    color: var(--gray-600);
}

.cookie-type-body ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--apple-green-dark);
}

.cookie-type-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 1rem;
}

.cookie-type-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.cookie-type-meta i {
    color: var(--gray-400);
}

/* Essential card */
.cookie-essential {
    border-color: var(--apple-emerald);
}

.cookie-essential .cookie-type-header {
    background: rgba(10, 42, 18, 0.05);
}

/* Functional card */
.cookie-functional {
    border-color: var(--teal);
}

.cookie-functional .cookie-type-header {
    background: rgba(20, 184, 166, 0.05);
}

/* Analytics card */
.cookie-analytics {
    border-color: var(--purple);
}

.cookie-analytics .cookie-type-header {
    background: rgba(139, 92, 246, 0.05);
}

/* Marketing card */
.cookie-marketing {
    border-color: var(--gray-300);
}

.no-marketing-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(211, 93, 74, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.no-marketing-notice i {
    color: var(--coral);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.no-marketing-notice p {
    margin: 0;
}

.future-note {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--gray-500) !important;
}

/* ============================================
   COOKIES TABLE
   ============================================ */
.cookies-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookies-table th,
.cookies-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.cookies-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.cookies-table td {
    color: var(--gray-600);
}

.cookies-table code {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--apple-emerald);
}

.table-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================
   THIRD PARTY GRID
   ============================================ */
.third-party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.third-party-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.third-party-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.third-party-icon {
    font-size: 1.5rem;
}

.third-party-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-800);
}

.third-party-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.third-party-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--apple-emerald);
    font-size: 0.85rem;
    font-weight: 500;
}

.third-party-card a:hover {
    text-decoration: underline;
}

.third-party-note {
    font-style: italic;
    font-size: 0.9rem;
}

/* ============================================
   MANAGE OPTIONS
   ============================================ */
.manage-option {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 1rem 0;
}

.manage-option h3 {
    margin-top: 0;
}

.browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.browser-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.browser-name {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.browser-path {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.manage-option a {
    color: var(--apple-emerald);
    word-break: break-all;
}

.manage-option a:hover {
    text-decoration: underline;
}

/* ============================================
   IMPACT TABLE
   ============================================ */
.impact-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.impact-table {
    width: 100%;
    border-collapse: collapse;
}

.impact-table th,
.impact-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--gray-200);
    vertical-align: top;
}

.impact-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.impact-table td {
    color: var(--gray-600);
}

.impact-table ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.impact-table ul li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.impact-table ul li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.impact-essential td:first-child {
    border-left: 3px solid var(--apple-emerald);
}

.impact-functional td:first-child {
    border-left: 3px solid var(--teal);
}

.impact-analytics td:first-child {
    border-left: 3px solid var(--purple);
}

/* ============================================
   STORAGE GRID
   ============================================ */
.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.storage-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.storage-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.storage-header i {
    font-size: 1.5rem;
    color: var(--apple-emerald);
}

.storage-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-800);
}

.storage-card p {
    font-size: 0.9rem;
    margin: 0;
}

.storage-note {
    font-style: italic;
    font-size: 0.9rem;
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    flex: 1;
    min-width: 200px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--apple-emerald);
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.contact-item a {
    color: var(--apple-emerald);
    font-weight: 600;
}

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

.address-block {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1rem;
}

.address-block p {
    margin-bottom: 0.5rem;
}

.address-block address {
    font-style: normal;
    color: var(--gray-700);
    line-height: 1.6;
}

/* ============================================
   CLOSING STATEMENT
   ============================================ */
.cookies-closing {
    background: linear-gradient(135deg, var(--apple-emerald) 0%, var(--apple-emerald-light) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
}

.cookies-closing blockquote {
    border: none;
    padding: 0;
    margin: 0;
    color: var(--white);
    font-style: italic;
    font-size: 1.25rem;
}

.cookies-closing blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--apple-green);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    .cookies-hero {
        padding: 7rem 1rem 3rem;
    }

    .cookies-icon {
        font-size: 3rem;
    }

    .cookies-content {
        padding: 2rem 1rem;
    }

    .cookies-section {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .cookies-section h2 {
        font-size: 1.2rem;
    }

    .cookie-type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cookie-type-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .third-party-grid {
        grid-template-columns: 1fr;
    }

    .storage-grid {
        grid-template-columns: 1fr;
    }

    .browser-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }

    .cookies-closing {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cookies-hero-title {
        font-size: 2rem;
    }

    .cookies-section {
        padding: 1.25rem;
    }

    .cookies-table {
        font-size: 0.8rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 0.5rem;
    }

    .impact-table th,
    .impact-table td {
        padding: 0.75rem;
    }
}
