/* 
 * ONJUHU DESIGN SYSTEM V2
 * Flat, iOS-Native, Premium Aesthetic
 * Aligned with Mobile App + Admin Panel
 */

:root {
    /* Brand Palette - From Mobile App */
    --brand-primary: #00E676;
    --brand-primary-shade: #00CB68;
    --brand-primary-tint: #1AF08A;

    --brand-secondary: #FFD60A;
    --brand-secondary-shade: #E0BC09;

    --brand-tertiary: #5E5CE6;

    /* Semantic Colors */
    --semantic-success: #32D74B;
    --semantic-warning: #FF9F0A;
    --semantic-danger: #FF453A;

    /* Surface & Backgrounds - iOS System Colors */
    --surface-background: #F2F2F7;
    --surface-card: #FFFFFF;
    --surface-elevated: #FFFFFF;

    /* Text - iOS Label Colors */
    --text-strong: #000000;
    --text-default: #1C1C1E;
    --text-muted: #636366;
    --text-subtle: #8E8E93;

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.08);

    /* Dark Surface */
    --surface-dark: #000000;
    --surface-dark-elevated: #1C1C1E;

    /* Radii - iOS style */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    /* Shadows - Modern flat, subtle */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-display: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface-background);
    color: var(--text-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* CONTAINER */
.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--text-strong);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--surface-card);
    color: var(--text-default);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: #F9F9F9;
    border-color: var(--brand-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-default);
    border: 1.5px solid var(--border-default);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary-shade);
}

.btn-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(242, 242, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

.brand {
    font-family: var(--font-display);
    font-weight: var(--font-weight-extrabold);
    font-size: 1.35rem;
    color: var(--text-default);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--brand-primary);
    border-radius: var(--radius-xs);
    display: grid;
    place-items: center;
    color: var(--text-strong);
    font-size: 0.95rem;
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-default);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* CARDS */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* LEGAL CONTENT CARD */
.legal-section {
    padding: 5rem 0 4rem;
}

.legal-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

@media (min-width: 768px) {
    .legal-card {
        padding: 3rem;
    }
}

.legal-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-strong);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.legal-card .last-modified {
    color: var(--text-subtle);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-card h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-default);
    margin: 2rem 0 0.75rem;
}

.legal-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-card li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-card hr {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: 3rem 0;
}

/* FOOTER */
footer {
    background: var(--surface-dark);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: var(--font-weight-extrabold);
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-brand-icon {
    width: 28px;
    height: 28px;
    background: var(--brand-primary);
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--text-strong);
    font-size: 0.85rem;
}

.footer-tagline {
    color: var(--text-subtle);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.socials {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--brand-primary);
    color: var(--text-strong);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    color: var(--text-subtle);
    font-size: 0.85rem;
}

/* UTILITY */
.text-primary {
    color: var(--brand-primary);
}

.text-muted {
    color: var(--text-muted);
}