/* policy.css - Modern Design System for Hi Rummy Legal & Info Pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #009174;
    --primary-dark: #005c48;
    --primary-deep: #00382b;
    --accent-yellow: #ffe033;
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-light: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.policy-header {
    background: linear-gradient(135deg, #005c48 0%, #00382b 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.policy-navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    margin-right: 12px;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-yellow);
}

.nav-btn-download {
    background: linear-gradient(135deg, #ffe033 0%, #facc15 100%);
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 224, 51, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 224, 51, 0.45);
}

/* Page Hero Banner */
.page-hero {
    background: linear-gradient(180deg, #00382b 0%, #005c48 100%);
    color: #ffffff;
    padding: 48px 24px 72px;
    text-align: center;
}

.page-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--accent-yellow);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.page-hero-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero-meta a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.page-hero-meta a:hover {
    text-decoration: underline;
    color: var(--accent-yellow);
}

/* Content Container Card */
.policy-container {
    max-width: 960px;
    margin: -36px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.policy-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    padding: 48px;
}

@media (max-width: 768px) {
    .policy-card {
        padding: 24px 18px;
    }
    .page-hero h1 {
        font-size: 26px;
    }
    .page-hero {
        padding: 36px 16px 56px;
    }
    .policy-container {
        margin-top: -24px;
        padding: 0 14px;
    }
    .nav-menu .nav-link-hide-mobile {
        display: none;
    }
}

/* Document Typography */
.policy-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

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

.policy-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 28px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-card p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.policy-card ul, .policy-card ol {
    margin: 12px 0 20px 24px;
    color: var(--text-muted);
    line-height: 1.8;
}

.policy-card li {
    margin-bottom: 8px;
}

/* Alert / Warning Box */
.restriction-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
}

.restriction-box strong {
    color: #78350f;
}

/* Do and Don't grids in About Us */
.dos-donts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .dos-donts-grid {
        grid-template-columns: 1fr;
    }
}

.dos-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
}

.dos-box h4 {
    color: #166534;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.donts-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
}

.donts-box h4 {
    color: #991b1b;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Footer */
.policy-footer {
    background: #0d1b18;
    color: #ffffff;
    padding: 48px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.policy-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.policy-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.policy-footer-links a:hover {
    color: var(--accent-yellow);
}

.policy-footer-bottom {
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.policy-disclaimer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}