/* ==============================================================================
   BAGH CHAL: TIGERS AND GOATS - OFFICIAL PRIVACY POLICY THEME
   Authentic Himalayan Carved Wood, Burnished Brass & Aged Parchment Style
   Directly matching the Jetpack Compose Android Game Theme
   ============================================================================== */

:root {
    /* 1. Walnut & Mahogany Carved Wood Palette */
    --wood-dark: #160B05;
    --wood-bg: #100703;
    --wood-medium: #261208;
    --wood-light: #3B1C0D;
    --wood-border: #4D2512;
    --wood-surface-elevated: #1E0E06;

    /* 3D Wood Planks */
    --wood-plank-light: #8D4F26;
    --wood-plank-medium: #633215;
    --wood-plank-dark: #3E1D0B;
    --wood-plank-bevel: #A65F31;
    --wood-plank-border: #261005;
    --wood-border-dark: #2E1408;
    --wood-bevel-highlight: #A65F31;

    /* 2. Warm Aged Parchment Scroll Palette */
    --parchment-light: #F7E8C8;
    --parchment-bg: #EED4A2;
    --parchment-dark: #D8B67D;
    --parchment-border: #B58849;
    --text-parchment-primary: #381A09;
    --text-parchment-secondary: #6B3E1E;
    --text-parchment-muted: #8E5C35;
    --text-parchment-gold: #B57016;

    /* 3. Antique Burnished Brass, Gold & Metallic Studs */
    --brass-gold: #C59B3B;
    --brass-gold-bright: #E5BE5E;
    --brass-dark: #7A581A;
    --brass-muted: #9E7728;
    --brass-shimmer: #FFF2BD;

    --stud-gold: #FFD56B;
    --stud-dark: #52280E;
    --stud-highlight: #FFF6D6;

    /* 4. Character Faction Tones */
    --tiger-orange: #D65812;
    --tiger-orange-bright: #E8711C;
    --tiger-gold: #E5A128;
    --tiger-amber: #D07B18;
    --goat-ivory: #F5EEDA;
    --goat-ivory-light: #FCF8EC;
    --goat-horn: #866753;

    /* 5. Jeweled Gemstones & Status Accents */
    --jewel-ruby: #E52525;
    --jewel-emerald: #2EB84A;
    --jewel-amber: #FF9D1C;
    --jewel-sapphire: #2B8CFF;

    /* 6. Text Typography Colors */
    --text-primary: #FFF5E6;
    --text-secondary: #C4AF98;
    --text-muted: #85715E;
    --text-gold: #E8C265;
    --text-gold-bright: #FFDF7D;

    /* Dimensions & Radii */
    --container-max: 980px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 50px;

    /* 3D Shadows & Soft Ambient Depth */
    --shadow-wood-plaque: 0 16px 36px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    --shadow-parchment: inset 0 2px 6px rgba(56, 26, 9, 0.12), 0 4px 10px rgba(0, 0, 0, 0.3);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--wood-bg);
    /* Authentic Himalayan Monastery Wood Room Backdrop with CSS wood grain */
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0px, rgba(0, 0, 0, 0.25) 2px, transparent 2px, transparent 10px),
        radial-gradient(circle at 50% 0%, #2c160b 0%, #170a04 55%, #0d0402 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--wood-bg);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--wood-plank-light), var(--wood-plank-dark));
    border-radius: var(--radius-sm);
    border: 2px solid var(--wood-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--brass-gold-bright), var(--brass-dark));
}

/* Container Structure */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ==============================================================================
   METALLIC CORNER STUDS & DECORATIONS
   ============================================================================== */
.corner-stud {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--stud-highlight) 0%, var(--stud-gold) 55%, var(--stud-dark) 100%);
    border: 0.8px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    z-index: 4;
    pointer-events: none;
}
.corner-stud.top-left { top: 7px; left: 7px; }
.corner-stud.top-right { top: 7px; right: 7px; }
.corner-stud.bottom-left { bottom: 7px; left: 7px; }
.corner-stud.bottom-right { bottom: 7px; right: 7px; }

/* ==============================================================================
   HANGING CROWNED TITLE PLAQUE
   ============================================================================== */
.crowned-banner {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #B86622 0%, #8A4312 50%, #5A2608 100%);
    border: 1px solid var(--brass-gold-bright);
    border-radius: 8px;
    padding: 4px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    z-index: 5;
    white-space: nowrap;
}

.crowned-banner span {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--brass-shimmer);
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero {
    padding: 60px 0 35px;
    text-align: center;
    position: relative;
}

/* Subtle Glowing Background Crest */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(229, 161, 40, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-logo-frame {
    display: inline-block;
    position: relative;
    margin-bottom: 24px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    border: 2.5px solid var(--brass-gold-bright);
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.8),
        0 0 24px rgba(229, 190, 94, 0.35),
        inset 0 0 8px rgba(0, 0, 0, 0.5);
    background: var(--wood-dark);
    position: relative;
    transition: var(--transition);
}

.hero-logo:hover {
    transform: scale(1.04) rotate(-1deg);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.9),
        0 0 32px rgba(245, 207, 142, 0.5);
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Faction Badges next to Logo */
.faction-badge {
    position: absolute;
    bottom: -8px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.faction-badge.tiger {
    left: -20px;
    background: linear-gradient(135deg, var(--tiger-orange-bright), var(--tiger-orange), #4A1B05);
    color: #FFF2DF;
    border: 1px solid #FFA959;
}

.faction-badge.goat {
    right: -20px;
    background: linear-gradient(135deg, var(--goat-ivory-light), var(--goat-ivory), #B8A181);
    color: #2D180B;
    border: 1px solid #FFF8EE;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.3rem, 5.2vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 8px;
    color: var(--text-gold-bright);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 161, 40, 0.3);
}

.hero-tagline {
    font-family: 'Cinzel', serif;
    font-size: 1.18rem;
    color: var(--text-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 620px;
    margin: 0 auto 26px;
    line-height: 1.6;
}

/* Hero Badge Pill Group */
.badge-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, var(--wood-plank-medium) 0%, var(--wood-medium) 100%);
    color: var(--brass-shimmer);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1px solid var(--brass-dark);
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.badge:hover {
    border-color: var(--brass-gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 12px rgba(229, 190, 94, 0.3);
}

.badge-update {
    background: linear-gradient(135deg, var(--brass-gold-bright) 0%, var(--brass-gold) 60%, var(--brass-dark) 100%);
    color: #1A0C04;
    border: 1px solid #FFF2BD;
    box-shadow: 0 4px 16px rgba(197, 155, 59, 0.35);
}

/* ==============================================================================
   GAME CREST BANNER PLAQUE SHOWCASE
   ============================================================================== */
.banner-plaque-container {
    margin: 10px 0 35px;
    position: relative;
}

.wood-banner-frame {
    background: linear-gradient(180deg, var(--wood-plank-light) 0%, var(--wood-plank-medium) 50%, var(--wood-plank-dark) 100%);
    border: 1.5px solid var(--brass-dark);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-wood-plaque);
    position: relative;
    overflow: hidden;
}

.wood-banner-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

/* ==============================================================================
   CORE FEATURES HIGHLIGHTS GRID (WOODEN TILES WITH PARCHMENT INLAYS)
   ============================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 35px 0 45px;
}

.feature-plaque {
    background: linear-gradient(180deg, var(--wood-plank-light) 0%, var(--wood-plank-medium) 40%, var(--wood-plank-dark) 100%);
    border: 1.2px solid var(--wood-border);
    border-radius: var(--radius-md);
    padding: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.feature-plaque:hover {
    border-color: var(--brass-gold);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(229, 161, 40, 0.25);
}

.feature-inlay {
    background: linear-gradient(180deg, var(--parchment-light) 0%, var(--parchment-bg) 60%, var(--parchment-dark) 100%);
    border: 1px solid rgba(181, 136, 73, 0.45);
    border-radius: var(--radius-sm);
    padding: 22px 20px;
    height: 100%;
    box-shadow: var(--shadow-parchment);
    display: flex;
    flex-direction: column;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.feature-icon-token {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--wood-plank-light) 0%, var(--wood-plank-dark) 100%);
    border: 1.5px solid var(--brass-gold-bright);
    color: var(--text-gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.feature-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-parchment-primary);
    line-height: 1.25;
}

.feature-inlay p {
    font-size: 0.96rem;
    color: var(--text-parchment-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
}

/* ==============================================================================
   MAIN PRIVACY POLICY CARD (WOOD & AGED PARCHMENT SCROLL DESIGN)
   ============================================================================== */
.policy-card-wrapper {
    position: relative;
    margin: 20px 0 60px;
    padding-top: 16px;
}

.policy-wood-frame {
    background: linear-gradient(180deg, var(--wood-plank-light) 0%, var(--wood-plank-medium) 30%, var(--wood-plank-dark) 100%);
    border: 1.5px solid var(--brass-dark);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-wood-plaque);
    position: relative;
}

.policy-parchment-inlay {
    background: linear-gradient(180deg, #FAF1DF 0%, var(--parchment-bg) 50%, #E8CD97 100%);
    border: 1px solid rgba(181, 136, 73, 0.5);
    border-radius: var(--radius-md);
    padding: 48px 44px;
    box-shadow: var(--shadow-parchment);
    position: relative;
}

/* Content Headings inside Parchment Scroll */
.policy-parchment-inlay h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.42rem;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--text-parchment-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.02em;
    border-bottom: 1.5px solid rgba(181, 136, 73, 0.4);
    padding-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.policy-parchment-inlay h2:first-of-type {
    margin-top: 0;
}

.policy-parchment-inlay h2 i {
    color: var(--text-parchment-gold);
    font-size: 1.25rem;
}

.policy-parchment-inlay p {
    color: var(--text-parchment-secondary);
    margin-bottom: 18px;
    font-size: 1.02rem;
    line-height: 1.75;
    font-weight: 500;
}

.policy-parchment-inlay p strong {
    color: var(--text-parchment-primary);
    font-weight: 700;
}

/* Highlight Boxes inside Parchment (Wood Inset Plaque) */
.highlight-plaque {
    background: linear-gradient(145deg, #E6D0A7 0%, #D8BE8E 100%);
    border-left: 4px solid var(--tiger-amber);
    border-top: 1px solid rgba(181, 136, 73, 0.35);
    border-right: 1px solid rgba(181, 136, 73, 0.35);
    border-bottom: 1px solid rgba(181, 136, 73, 0.35);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 26px 0;
    box-shadow: inset 0 2px 5px rgba(56, 26, 9, 0.08);
}

.highlight-plaque p {
    margin-bottom: 0;
    color: var(--text-parchment-primary);
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.7;
}

.highlight-plaque p strong {
    color: var(--tiger-orange);
}

/* Custom Styled List Items */
.policy-parchment-inlay ul {
    list-style: none;
    margin-bottom: 26px;
}

.policy-parchment-inlay li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--text-parchment-secondary);
    font-size: 1.01rem;
    line-height: 1.7;
    font-weight: 500;
}

.policy-parchment-inlay li::before {
    content: "◆";
    position: absolute;
    left: 8px;
    top: 0;
    color: var(--text-parchment-gold);
    font-size: 0.92rem;
    line-height: 1.8;
}

.policy-parchment-inlay li strong {
    color: var(--text-parchment-primary);
}

/* Permissions & Technical Table / Cards */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 22px 0 28px;
}

.perm-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(181, 136, 73, 0.35);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.perm-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wood-plank-medium), var(--wood-plank-dark));
    color: var(--brass-shimmer);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--brass-gold);
}

.perm-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-parchment-primary);
    margin-bottom: 4px;
}

.perm-info p {
    font-size: 0.88rem;
    color: var(--text-parchment-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Contact Info Badge */
.contact-box {
    background: linear-gradient(135deg, #EAD7B2 0%, #DCBF8F 100%);
    border: 1px solid rgba(181, 136, 73, 0.45);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-top: 20px;
    text-align: center;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, var(--wood-plank-medium), var(--wood-dark));
    color: var(--brass-shimmer) !important;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1.5px solid var(--brass-gold-bright);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin-top: 12px;
    transition: var(--transition);
}

.contact-email-link:hover {
    transform: translateY(-2px);
    border-color: #FFF2BD;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 190, 94, 0.4);
}

/* ==============================================================================
   LORE QUOTE DIVIDER
   ============================================================================== */
.lore-section {
    text-align: center;
    padding: 28px 20px;
    margin: 0 auto;
    max-width: 680px;
}

.lore-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brass-gold), transparent);
    margin-bottom: 16px;
    opacity: 0.5;
}

.lore-quote {
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-gold);
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ==============================================================================
   FOOTER SECTION
   ============================================================================== */
footer {
    border-top: 1.5px solid var(--wood-border);
    padding: 50px 0 35px;
    background-color: #0C0502;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass-gold), transparent);
    opacity: 0.7;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--brass-gold-bright);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text-gold-bright);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0 auto 22px;
    max-width: 580px;
    line-height: 1.6;
}

.footer-copy {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ==============================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ============================================================================== */
@media (max-width: 768px) {
    .hero {
        padding: 45px 0 20px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
        border-radius: 20px;
    }

    .faction-badge {
        font-size: 0.62rem;
        padding: 2px 8px;
    }
    .faction-badge.tiger { left: -10px; }
    .faction-badge.goat { right: -10px; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 25px 0 35px;
    }

    .policy-parchment-inlay {
        padding: 32px 18px;
    }

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

    .badge-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .badge {
        width: 100%;
        max-width: 280px;
    }

    .contact-email-link {
        font-size: 0.95rem;
        padding: 10px 20px;
        word-break: break-all;
    }
}
