/*
 * Dorian Web - Design System
 * Based on iOS app PhotoFilterColors & PhotoFilterFonts
 */

/* ============================================================
   Font Face Definitions (Pretendard)
   ============================================================ */

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/Pretendard-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* ============================================================
   CSS Variables (from PhotoFilterColors.swift)
   ============================================================ */

:root {
    /* Main Colors */
    --warm-off-white: #F8F9FA;      /* 배경색 (팬텀 화이트) */
    --dusty-rose: #D4A5A5;          /* 세컨드 메인 */
    --tiffany-blue: #95CBE5;        /* 액센트 (아이스블루) */
    --terracotta: #4A77AD;          /* 포인트 */

    /* Neutral Colors */
    --warm-gray: #8B7F77;           /* 보조 텍스트 */
    --soft-beige: #F5E6D3;          /* 부드러운 베이지 */
    --charcoal: #1C2A38;            /* 메인 텍스트 (미드나잇 스틸) */

    /* Semantic */
    --background: var(--warm-off-white);
    --text-primary: var(--charcoal);
    --text-secondary: var(--warm-gray);
    --accent: var(--tiffany-blue);

    /* Typography Scale */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   Layout
   ============================================================ */

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Header / Logo
   ============================================================ */

.header {
    padding: 48px 0 32px;
    text-align: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(28, 42, 56, 0.08);
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.logo-d {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 3rem;
    color: var(--charcoal);
    letter-spacing: -2px;
    line-height: 1;
}

.logo-or {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--charcoal);
    letter-spacing: -1px;
    margin-left: -2px;
}

.tagline {
    font-weight: 300;
    font-size: 0.875rem;
    color: rgba(28, 42, 56, 0.5);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ============================================================
   Typography
   ============================================================ */

h1 {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

h2 {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--charcoal);
    margin-top: 32px;
    margin-bottom: 12px;
}

h3 {
    font-weight: 500;
    font-size: 1rem;
    color: var(--charcoal);
    margin-top: 24px;
    margin-bottom: 8px;
}

p {
    font-weight: 400;
    font-size: 0.9375rem;
    color: rgba(28, 42, 56, 0.85);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ============================================================
   Content Sections
   ============================================================ */

.content {
    flex: 1;
    padding-bottom: 64px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(28, 42, 56, 0.08);
}

/* ============================================================
   Privacy Policy Specific
   ============================================================ */

.policy-article {
    margin-bottom: 32px;
}

.policy-article strong {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.policy-article p {
    font-weight: 300;
    font-size: 0.875rem;
    color: rgba(28, 42, 56, 0.75);
    line-height: 1.8;
}

.policy-article ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.policy-article li {
    font-weight: 300;
    font-size: 0.875rem;
    color: rgba(28, 42, 56, 0.75);
    padding-left: 16px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.policy-article li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--terracotta);
}

.effective-date {
    font-weight: 400;
    font-size: 0.8125rem;
    color: rgba(28, 42, 56, 0.5);
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(28, 42, 56, 0.08);
}

/* ============================================================
   Landing Page Specific
   ============================================================ */

.hero {
    text-align: center;
    padding: 40px 0 48px;
}

.hero-title {
    font-weight: 300;
    font-size: 1.125rem;
    color: rgba(28, 42, 56, 0.65);
    line-height: 1.8;
    max-width: 320px;
    margin: 0 auto 24px;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 0.875rem;
    color: rgba(28, 42, 56, 0.5);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

.features {
    display: grid;
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(28, 42, 56, 0.04);
}

.feature-card h3 {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--charcoal);
    margin: 0 0 8px 0;
}

.feature-card p {
    font-weight: 300;
    font-size: 0.8125rem;
    color: rgba(28, 42, 56, 0.65);
    margin: 0;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 32px 0;
}

.app-store-badge {
    height: 48px;
    transition: opacity 0.2s ease;
}

.app-store-badge:hover {
    opacity: 0.8;
}

/* ============================================================
   Contact Section
   ============================================================ */

.contact-section {
    background: rgba(28, 42, 56, 0.03);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin: 48px 0;
}

.contact-section h3 {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--charcoal);
    margin: 0 0 8px 0;
}

.contact-section p {
    font-weight: 300;
    font-size: 0.8125rem;
    color: rgba(28, 42, 56, 0.6);
    margin: 0 0 16px 0;
}

.contact-email {
    display: inline-block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--terracotta);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(74, 119, 173, 0.3);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-email:hover {
    background: rgba(74, 119, 173, 0.08);
    border-color: var(--terracotta);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid rgba(28, 42, 56, 0.06);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-weight: 400;
    font-size: 0.8125rem;
    color: rgba(28, 42, 56, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--charcoal);
}

.footer-copyright {
    font-weight: 300;
    font-size: 0.75rem;
    color: rgba(28, 42, 56, 0.35);
}

.footer-privacy-note {
    font-weight: 300;
    font-size: 0.6875rem;
    color: rgba(28, 42, 56, 0.25);
    margin-top: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 32px 0 24px;
    }

    .app-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .logo-d {
        font-size: 2.5rem;
    }

    .logo-or {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1rem;
    }
}
