:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #0f172a;
    --accent-soft: #f1f5f9;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.75; }

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}
.back-link:hover { background: var(--accent-soft); opacity: 1; }

/* Index */
.page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.page-subtitle {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 32px;
}

.app-list {
    display: grid;
    gap: 14px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.app-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(15,23,42,0.05), 0 12px 24px rgba(15,23,42,0.06);
    opacity: 1;
}

.app-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.app-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card__body { flex: 1; min-width: 0; }
.app-card__name {
    font-weight: 600;
    font-size: 17px;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}
.app-card__tag {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}
.app-card__chev {
    color: var(--muted);
    flex-shrink: 0;
}

/* Detail */
.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.detail-header__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-header__icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-header__title { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.detail-header__sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

.policy-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}

.policy-card h1 {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.policy-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
    letter-spacing: -0.01em;
    color: var(--accent);
}
.policy-card h2:first-of-type { margin-top: 20px; }
.policy-card p {
    margin: 0 0 12px;
    color: #1f2937;
}
.policy-card .last-update {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 40px;
}

@media (max-width: 640px) {
    .container { padding: 24px 16px 60px; }
    .policy-card { padding: 22px 18px; }
    .page-title { font-size: 26px; }
    .detail-header__title { font-size: 22px; }
}
