/* OneTask Cash — legal / support pages.
   Tokens come from Figma (0092 | OneTask, "Settings / *" frames). */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
    --color-bg-screen: #f6f5f0;
    --color-bg-surface: #ffffff;
    --color-fill-glass: #fcfbf8;
    --color-text-primary: #111a16;
    --color-text-tertiary: #8c8a82;
    --color-stroke-dark: rgba(22, 22, 22, 0.08);
    --color-shadow-glass: rgba(0, 0, 0, 0.08);

    /* SF Pro is the design font: system on iOS/macOS, Inter elsewhere. */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;

    --radius-card: 18px;
    --tap-duration: 120ms;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg-screen);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* Page container: system status bar / home indicator come from safe-area insets. */
.page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
    padding:
        calc(24px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
        max(34px, env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}

/* Header: glass back button + centered title (Title 2). */
.header {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-right: 48px;
}

.header--root {
    padding-right: 0;
}

.glass-button {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: var(--color-fill-glass);
    box-shadow: 0 2px 12px var(--color-shadow-glass);
    transition: transform var(--tap-duration) ease, box-shadow var(--tap-duration) ease;
}

.glass-button:active {
    transform: scale(0.94);
    box-shadow: none;
}

.glass-button img {
    display: block;
    width: 24px;
    height: 24px;
}

.header__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    letter-spacing: -0.45px;
    text-align: center;
    overflow-wrap: break-word;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Paragraph card: Subhead Semibold title + Footnote body. */
.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-card);
    background: var(--color-bg-surface);
    overflow-wrap: break-word;
}

.card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 590;
    line-height: 20px;
    letter-spacing: -0.23px;
}

.card__body {
    color: var(--color-text-tertiary);
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.08px;
}

.card__body p,
.card__body ul {
    margin: 0;
}

.card__body ul {
    padding-left: 19.5px;
}

.card__body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.spacer {
    height: 18px;
}

/* Index: link rows. */
.nav-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border: 1px solid var(--color-stroke-dark);
    color: inherit;
    text-decoration: none;
    transition: transform var(--tap-duration) ease;
}

.nav-card:active {
    transform: scale(0.98);
}

.nav-card .card__title {
    flex: 1 1 auto;
    min-width: 0;
}

/* Chevron chip (Glass Button 32). */
.chip {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: var(--color-fill-glass);
}

.chip img {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 200ms ease;
}

.chip--forward img {
    transform: rotate(-90deg);
}

/* FAQ: collapsible block. */
.faq-item {
    gap: 0;
    padding: 20px 16px;
    border: 1px solid var(--color-stroke-dark);
}

.faq-item__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__summary .card__title {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-item__summary:active .chip {
    transform: scale(0.9);
}

.faq-item .chip {
    transition: transform var(--tap-duration) ease;
}

.faq-item[open] .chip img {
    transform: rotate(180deg);
}

.faq-item .card__body {
    margin-top: 12px;
}
